Math 8 Honors (P3) Flashcards
Subtraction in Exploding Dots
Doesn’t exist
F-strings in Python Syntax: <code> f"this is a string with an {object}" <\code></code>
Strings that have { } (curlies) as place holders for objects.
Exploding dots base for a 1-10 machine
Base 10
Exploding dots base for a 1-2 machine
Base 2
Exploding dots base for a 1-23405 machine
Base 23405
Mr. Helmstedter wants us to learn how to _ _ _ _ _.
Learn
If else statements in Python
If else blocks always start with an if. Then, you indent and write else. If you want to chain them together, use elif. (ELse + IF = ELIF) Syntax: <code> if conditional: > this is indented else conditional > this is also indented elif conditional > final indent </code>
while loop
use a while loop to repeat sections of code when you aren't sure how many times you need to repeat an action. Syntax: <code> while conditional: ---need to indent <\code></code>
break
use break to end a loop when specific conditions are met
Data types
strings (str), integers (int), floats (float)
to print something out in text on the console. Syntax: <code> print("hi!") <\code></code>
assignment operator
= (equals is not equals, it is the assignment operator)
Conditional operators
== which means equals != is not equal < is less than > is greater than <= is less than or equal to >= is greater than or equal to they are operators that evaluate the True or False
==
equals
!=
not equal to
<
less than
>
greater than
<=
less than or equal to
> =
greater than or equal to
What is factoring in algebraic expressions?
Take an expression and make it the product of 2 smaller expressions.
Example:
xsquared + 5x + 6 = (x + 2) x (x + 3)