Part of the series

Several example codes

~1 min read • Updated Oct 1, 2025

Program Overview

This Python program reads your age in years and calculates the approximate number of minutes you’ve lived.
Assumptions:
- Each year has 365 days
- Each day has 24 hours × 60 minutes = 1440 minutes


Python Code:


# Read age from user
age_years = int(input("Enter your age in years: "))

# Calculate total minutes lived
minutes_per_day = 24 * 60
days_per_year = 365
total_minutes = age_years * days_per_year * minutes_per_day

# Display result
print("\n--- Result ---")
print(f"You have lived approximately {total_minutes:,} minutes.")

Sample Output:


Enter your age in years: 25  

--- Result ---  
You have lived approximately 13,140,000 minutes.

Step-by-Step Explanation:

- The user enters their age as an integer
- The program uses fixed values for days per year and minutes per day
- It multiplies these values to compute the total minutes lived
- The result is displayed in a readable, formatted number


Written & researched by Dr. Shahin Siami