Challenge: Our Age in Days
Explore writing Python code to calculate your age in days and practice foundational programming concepts. This lesson helps you apply logical thinking and interact with your AI mentor to build confidence in coding.
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.