1/24
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Str
Used for storing text
Float
Real number with decimal point
Int
Interger value
Bool
Reference a true or false
//
Floor divisor, first integer lower then the divided value
%
Mudulo/ remainder
String
Stored text, held in ‘ ‘
Pow(x , y)
Function that calculates xy
…
Any number of arguments
Abs(x)
Returns the absolute value of x
Float(x)
Converts a string or number to a floating point
Int()
Converts a number or string to an integer
Import math
Imports group package for math
Import random
Imports group package for random variables
Boolean expressions
Return a true or false
Order of precedence
BEDMAS → not → and → or
Order of precedence
BEDMAS → not → and → or
Control structures
Else, elif, if
[ ]
Optional values
|
Or
a -= 1
shorthand for a = a - 1
while
keeps repeating till criteria is met
for
loops a set number of times
!=
is not equal to