write a python programm to convert a given integer (in days) to year,month,days assume that all month have 30 days all year have 365 day

 #Q2-write a python programm to convert a  given integer

#(in days) to year,month,days assume that all month have 30 days
# all year have 365 day
days=int(input("Enter days:"))
year=days//365
day=days%365
month=day//30
day=day%30
print(year,'year')
print(month,'month')
print(day,'days')

Comments

Popular posts from this blog

Write a python script to display the current date and time. First create variables to store date and time, then display date and time in proper format (like: 13-8-2022 and 9:00 PM """