1/32
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
command line interface
where you type commands on the keyboard at a prompt to tell the terminal what to do
where you start your terminal and REPL
to start a code
type python into your terminal, otherwise nothing will ever happen
REPL
read execute print loop
top box in python
used to edit a module of code that will eventually be run in the terminal or Trailhead
Boolean
a type of data that evaluates to True or False
technically they are strings but they are typed as bools
used when making logical decisions
indexing
using [] to pull a variable out of a line and print it alone
%
used to find remainders when dividing two numbers
remainders will pretty much only work with positive whole numbers
len()
used to find the length of a string
isalpha
used when strings are only made up of alphabetical letters
isdigit
used when expressions are only made up of digits
algorithm
a series of steps that end up producing a result
high-level
zoomed out, in the context of this class
object
a typed unit of data in memory
can also be expressions (a single int can be an expresssion)
conditional statement
statements that only happen if and only if something else occurs
assignment operator
assigns a variable some value
used to assign local variables usually
pseudocode
fake code, simplified
used to write out code before actually typing it in
loop statement
a statement that performs an action only a certain number of times
identifier
the function's name
ex. tea_bags
->
leads to the return type of the function
string concatenation
a joining of multiple elements
floats
will always prevail in terms of PEMDAS - they are the most precise
string x int
you can multiply a string times an integer and it will print as expected
return keyword
need to have this in there for a function to return an output
signature
the whole top line of the function
stack
shorter term memory of Python
names and frames are stored here
heap
definitions are housed here, longer term memory
keyword argument
specifies the name of the parameter
functions
used to help you extract from processes, go higher level
function call syntax
need a function name and argument list
function definition syntax
def function name (parameter list) -> return type:
docstring
what you function does
==
to show if too things are equal
expressions
can totally switch them out if they evaluate to the same type
string comparison
doesn't always work the way you think it will - be very careful