Show Menu
Cheatography

Python Cheat Sheet Cheat Sheet by

Vocabulary

Variable
can be changed
String
list of characters such as number, letters and symbols
integer
numer that not decimal
floating number
number include decimal
Syntax
Gramma
Modulo
Find a remainder

Function

print
show the inform­ation
input()
receive inform­ation
int()
converts a value to an integer
float()
Change number to be decimal number
str()
A list of number
len()
The length of the string
 

Symbol

=
equal
+
add
-
minus
*
multiply
/
divide
" "
quotation mark
**
power to
=<
more than or equal
=>
less than or equal

code

print (name.u­­p­p­er())
print (name.c­­a­p­i­ta­­lize())
print (name.t­­i­t­le())
print (name.l­­o­w­er())
 

Addition

string + string
combine together
number + number
math
string + number
crash

Math

string * string
crash
string * number
combine that string multiple times
number ** number
math - exponents string ** number crash
number * number
math - multiply
string ** number
crash
 

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.