Write a Python program to convert days into years, weeks and days.

#Static 

day = 400
 
year = (day//365)
 
weeks = (day % 365)//7
 
days = day-((year * 365) + (weeks*7))
 
print(“Year :- “,year)
 
print(“weeks :-“,weeks)
 
print(“Day :-“,days)
 

#Dynamic

 day = int(input(“Enter the days :- “))
 
year = (day//365)
 
weeks = (day % 365)//7
 
days = day-((year * 365) + (weeks*7))
 
print(“Year :- “,year)
 
print(“weeks :-“,weeks)
 
print(“Day :-“,days)