Math 8 Flashcards
what are f-strings?
strings that are formatted with curlies } as place holders for objects
Syntax:
f”this is a string with and {object}”
object = object
subraction?
NOPE doesnt exist
if else in python?
if else blocks always start with and if statement. if yoou want to chain them together use elif.
Syntax:
if conditional:
this is indented
elif conditional:
this is indented
else:
final indent
while loop?
use a loop to repeat sections of code when you aren’t sure how many times you need to repeat an action.
Syntax:
while conditional:
—–need to indent
data types?
Strings
Floats
Integer
assignment operator?
==
!=
<
>
<=
>=
What are linear patterns and what are non-linear?
Linear grows at a constant and is a strait line when graphed.
import in python
import in python allows you to use other peoples
function notation
give a name to a function. generally we use a single letter followed by parahesis that tell you the variable.
f(x) = 2x +1
function creation
for linear equations what formula can always be used
y=mx+b
y=independent variable
m=growth
x=independent variable
b=initial condition
2n - 3 - n + 4 = n + 2
no solution
What does it mean to solve and equation?
Find the value of 1 of the variables that make the equation true.
What is a graph?
A visual representation of every possible solution to an equation.
What is a system of equations?
More than one equation.