Lesson 6: Math with Python
Python is a powerful calculator. We can do addition (+), subtraction (-), multiplication (*) and division (/).
Operators
Use * for times and / for divided by. Use ** for power!
area = side * side
average = (a + b) / 2Your Objective
Calculate how many seconds are in a year.
- 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day, 365 days.
- Multiply everything!