Cheat the Python Cheat Sheet

A Programming › Python cheat sheet in English by jinsear
4,480 views 12,057 downloads 11 Feb 2016 History
3.7 avg · 0 ratings

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

Badges

Great Cheat Sheet Good Cheat Sheet Nice Cheat Sheet 🇺🇸 Big in United States

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.