Cheatography
https://cheatography.com
Python Cheatsheet #1
COMMAND |
print() |
print info/command on the screen |
int() |
convert string to integers |
str() |
convert number to string |
float() |
convert integers to decimal |
input() |
to gain info/command from the user |
len() |
the length of the string |
import |
to import an external program |
random.choice() |
to choose randomly from a list |
|
|
DEFINITIONS
String |
list of letters/number |
Variable |
value that can be change |
Integer |
whole number |
Floating Point |
decimal |
Syntax |
grammar |
Boolean |
ture/False |
|
|
ADDITIONAL
string+string |
combine that string |
string+number |
crash |
number+number |
math-addition |
MULTIPLICATION EXPONENT
String*number |
combine that string |
String**number |
crash |
number*number |
math-multiply |
number**number |
math-exponent |
string*string |
crash |
string**string |
crash |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment