This is a draft cheat sheet. It is a work in progress and is not finished yet.
Variable Types
|
Int |
|
Float |
|
Complex |
|
String |
|
Tuple |
|
List |
{'azul': 'blue', 'rosa': 'pink'}
|
Dictionary |
|
Set |
|
Boolean |
|
NoneType |
|
Fuction |
Math - Operations
|
Assign 2 to a |
|
Assign 3 to b |
|
a plus b (5) |
|
a minus b (-1) |
|
a times b (6) |
|
a divided by b (0.6666666) |
|
Floor division of a by b (0) |
|
Remainder of a divided by b (2) |
|
a to the power of b (8) |
Math - Functions
|
Imports the math module |
|
Rounds x up |
|
Rounds x down |
|
Rounds x up or down |
|
Square root of the x |
|
Sine of angle |
|
Cosine of angle |
|
Tangent of angle |
|
Arcsine of angle |
|
Arccosine of angle |
|
Arctangent of angle |
|
Hiperbolic sine of angle |
|
Hiperbolic cosine of angle |
|
Convert angle from radians to degrees |
|
Convert angle from degrees to radians |
|
e to the power of x |
|
Natural logarithm of x |
|
Base 2 logarithm of x |
|
Factorial of x |
|
Gamma function of x |
|
e constant |
|
pi constant |
1 round
is not part of the math
module
|
|
Basic Functions
|
Prints string to the screen |
|
Prints a string and waits takes keyboard input |
|
Returns the number of elements of a sequence |
|
Returns the type of the variable |
|