Let's quickly recap what we did last time.
Engagement Message
Shall we dive in?
So last time, we saw how to add values stored in variables, like:
total_score = score1 + score2
Engagement Message
If score1
was 50 and score2
was 25, what value ended up in total_score
?
Great! Besides adding (+
), Python can also do subtraction using the minus sign (-
).
If you have:
Engagement Message
What value do you think remaining_coins
holds?
Python uses the asterisk (*
) for multiplication. It works just like you'd expect.
Example:
Engagement Message
How many total_apples
would there be?
