1/31
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
print()
Output what it holds for the user
input()
Creates something for user to input
hex()
Converts to hexidecimal
bin()
Converts to binary
str()
Converts to string
type()
Identifies the data type of an “item”
int()
Converts to integer
float()
Converts to a float
min()
Finds minimum value
max()
Finds maximum value
len()
# of something in a container
math.log10()
Log 10 conversion
math.sqrt()
Gives square root
random.random()
Gives random # 0.0 to 1.0
random.randint()
Random whole # (integer)
random.choice()
Random value from sequence
continue
Ends the current iteration of a loop to begin the next iteration
break
stops the current iteration when it is unable to do so itself - jumps to the next statement immediately following the loop
return
Applies the valued result of a function to the function output - the value of the function call
try & except
Prevents your code from crashing during execution - execution handling
def
Keyword used to define a function
import
Imports a module of functions to use within the program
Float
Decimal value (e.g. 1.0)
Integer
Whole number value (e.g. 1)
String
Character value (e.g. ‘string’)
Boolean
True or False
None
None value
Container
A data holder (e.g. a list, a string)
oct()
Converts to octal
range()
Returns a specified sequence of #s
range syntax
range (start, stop, [steps])