Cheatography
https://cheatography.com
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 information |
input() |
receive information |
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.upper()) |
print (name.capitalize()) |
print (name.title()) |
print (name.lower()) |
|
|
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 |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment