Challenge: Our Age in Days
Discover how to apply Python's basic arithmetic by creating a program that calculates your age in days. Learn to use the print function with mathematical expressions to see immediate results and practice foundational coding skills.
We'll cover the following...
We'll cover the following...
Python can do basic math, just like a calculator.
For example:
+adds numbers*multiplies numbers
You can use math inside the print() function, and Python will calculate the result for you.
Your task:
Estimate how many days you’ve been alive by:
Taking your age in years
Multiplying it by the number of days in a year (365)
Printing the result
💡 Hint:
Put the math expression inside print().
When you click Run, Python should show a single number.