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) / 2

Your Objective

Calculate how many seconds are in a year.

  1. 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day, 365 days.
  2. Multiply everything!
main.py
Initializing Python Environment...