Show Menu
Cheatography

Cheat the Python Cheat Sheet by

Type of binary

Interger
Number
String
Word with ".."
Float
decimal
Boolean
True/False

Basic Command

Print()
Show
int()
Change to integer
float()
Float
str()
String
input()
Ask for inform­ation
len()
Use for count a letter in string only
#
commenting single line
"­"­"........."­"­"­
multiple lines commenting

Capitla

name.u­­­­­­­­­p­­­p­­­­er()
name.l­owe­r()­­­
 

Order in string

"­123­456­"[0]
the first letter is 0

Number Symnols

==
equal to
!=
not equal to
<
less than
<=
less than or equal to
>
greater than
>=
greater than or equal to
+
add
-
subtract
*
multiply
/
divide
**
exponent
%
modulo: the remainder
 

State

if /elif /else: only work one time in a series

and/or/not

and
both = true
or
only one is true= true
not
state the opposite
 

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.