Advertisement
greedydev

Untitled

Oct 18th, 2022
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1.     input_mins = int(input("Enter an amount in minutes: "))
  2.     years = int(input_mins / (365 * 24 * 60))
  3.     days = int((input_mins % (365 * 24 * 60)) / (24 * 60))
  4.     hours = int(input_mins % (24 * 60) / 60)
  5.     mins = int(input_mins % 60)
  6.  
  7.     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