|
Variable
|
a value
|
|
String
|
symbols
|
|
Integer number
|
Whole number
|
|
Float number
|
decimal number
|
|
Boolean
|
True/False
|
|
print (name.upper())
|
PANPAN KITTIPATRA
|
|
print(name.lower())
|
panpan kittipatra
|
|
print (name.capitalize())
|
Panpan kittipatra
|
|
print (name.title())
|
Panpan Kittipatra
|
|
#
|
comment
|
|
""" """
|
multi line comment
|
|
print()
|
show
|
|
int()
|
convert to integer
|
|
str()
|
convert to string
|
|
float()
|
convert to decimal
|
|
string + string
|
combine together
|
|
string + number
|
Fail
|
|
number + number
|
plus
|
|
number - number
|
minus
|
|
==
|
equal to
|
|
!=
|
not equal to
|
|
<
|
less than
|
|
<=
|
less than or equal to
|
|
>
|
greater than
|
|
>=
|
greater than or equal to
|
|
+
|
plus
|
|
-
|
subtract
|
|
*
|
mutiply
|
|
/
|
divide and quotient is float
|
|
//
|
divide and quotient is integer
|
|
**
|
exponent
|
|
%
|
modulo
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.