Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input_mins = int(input("Enter an amount in minutes: "))
- years = int(input_mins / (365 * 24 * 60))
- days = int((input_mins % (365 * 24 * 60)) / (24 * 60))
- hours = int(input_mins % (24 * 60) / 60)
- mins = int(input_mins % 60)
- print(f"{input_mins} mins is {years} years, {days} days, {hours} hours, and {mins} minutes.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement