It is an interpreted programming language.
type()
This function determine the type of the parameter.
Example
>>> type(1) <type 'int'>
str()
This function convert the parameter into a string.
Example
>>> str(1) '1'
len()
This function determines the lenght (amount of characters) within the parameter
Example
>>> len("Alejandro") 9
print()
This function prints the parameter
Example
>>> print("Hello, Good Morning") Hello, Good Morning
Strings
It is a literal data type that represent chains of characters mainly
Example
>>> "Hello World" 'Hello World'
Integers
This is a numeric data type that represent integer numbers mainly
Example
>>> 120 120
Float
This a numeric data type that represent floating point numbers
Example
>>> 1.2345 1.2345
Boolean
This is a data type that represents either True or False. Useful for conditional statements
Example
>>> type(True) <type 'bool'> >>> type(False) <type 'bool'> >>> 0 == 0 True >>> 1 == 0 False
Boolean Operant "equals" ==
This "function" determines equality for the given parameters
Example
>>> 0 == 0 True
Boolean Operant "different" !=
This "function" determines if the given parameters are equal or not
Example
>>> 0 != 1 True
Python is case sensitive
The python programming language is case sensitive
Example
>> "a" == "A" False
Boolean operator "greater than" >
This operator will compare if the left parameter is greater the right paramenter in order to come up with a Boolean result, it could be used in conjuntion with the equals operator in order to determine if the left parameter is greater than or equals to the right parameter
Example
>>> 100 > 60 True
Boolean operator "less than" <
This operator will compare if the left parameter is less than the right paramenter in order to come up with a Boolean result, it could be used in conjuntion with the equals operator in order to determine if the left parameter is less than or equals to the right parameter
Example
>>> 200 < 150 False >>> 200 <= 400/2 True