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
\t
tabs over five spaces
\n
moves to front of next line
\r
moves to front of current line
\\
displays \ when printed
\”
displays “ when printed
\’
displays ‘ when printed
“““ Comment “““
Same as #Comment
boolean
True or false
integer
A whole number
float
a decimal number
string
A series of character - this can be letters, number, or words
list
A series of variables
tuple
An unchangeable list
print(“Hello” * 3)
HelloHelloHello
+
Addition
-
Subtraction
*
Multiplication
/
Division
//
Floor division (returns only integer)
%
Modulus (Returns only remainder)
**
Exponential
def book(title, author)
Placeholder values are used when defining a function for the first time to play with/modify
parameter
A placeholder variable used to help define a function, which can be used like any other variable in the definition. This value must be filled when the function is called.
Argument
The value that fills the function’s parameter when the function is called
Default Value
A predefined value assigned to a function’s parameter, it is used when no argument is provided for that parameter during a function call.
Return
returns a value so that it can be used outside of the function body
return value
The resulting value from a function, useful for using a value outside of that function.
Composable
The ability to combine functions to create more complex operations by using one function’s output or logic as input for another.
Global
A keyword to use in a function to modify a global variable
Global Variable
A variable that can be used everywhere in the program
Local Variable
A variable that only exists within the function/loop it is created in
Scope
Where a variable can exist within a program