Write a program that prompts the user to enter the minutes (e.g., 1billion), and displays the number of years and days for theminutes. For simplicity, assume a year has 365 days. Here is asample run: Enter the number of minutes: 1000000000 1000000000minutes is approximately 1902 years and 214 days IN PYTHON
Solution
n = int(input(“Enter the number of minutes: “))years = n // (24 * 60 * 365)days = (n % (24 * 60 * 365)) // (24 * 60)print(“{} minutes is approximately {} years and {} days”.format(n, years, days))
Enter
OR
OR