More Operators
Challenge 1-2: Maths
Challenge 1-2: Maths
Here are some more symbols, or operators.
For division, we use that slanted line, called a forward slash.
And for multiplication, we use a star symbol, called an asterisk.
Operators
divide /
multiply *
Let's try a few of these expressions and see what happens.
>>> 6 * 5
>>> 6 / 2
>>> 10 * 5 * 3
When you finish typing these examples, feel free to try some of your own using different numbers and operators.
Answers
>>> 6 * 5
30
>>> 6 / 2
3.0
>>> 10 * 5 * 3
150