Show Menu
Cheatography

pythonpp Cheat Sheet by

python

vocab

Variable
a value
String
symbols
Integer number
Whole numberĀ­
Float number
decimal number
Boolean
True/False

capital letter

print (name.u­pp­er())
PANPAN KITTIPATRA
print(­nam­e.l­ower())
panpan kittipatra
print (name.c­ap­ita­lize())
Panpan kittipatra
print (name.t­it­le())
Panpan Kittipatra
 

Function

#
comment
"­"­" "­"­"
multi line comment
print()
show
int()
convert to integer
str()
convert to string
float()
convert to decimal

addition

string + string
combine together
string + number
Fail
number + number
plus
number - number
minus
 

symbols

==
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
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.