Cheatography
https://cheatography.com
Addition
string + string |
combine together |
string + number |
crash |
number + number |
math - addition |
Functions
print() |
displays information on the screen |
input() |
receives information from the user |
int() |
converts a value to an integer |
str() |
A list of number, letter and symbols |
len() |
The length of the string. |
# |
comment, no effect |
import random+random.choice() |
pick random item in the list |
|
|
Vocabulary
variable |
holds a value and can be changed |
string |
a list of characters such as numbers, letters, symbols |
Integer number |
Whole number/counting number |
Floating point |
The number in decimal |
Syntax |
Grammar/Structure og language |
Modulo |
Find the remainder |
|
|
Math
== |
equal to |
!= |
not equal to |
< |
less than |
> |
more than |
<= |
less than or equal |
>= |
more than or equal |
% |
modulo, find the remainder |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment