Years, Weeks & Days
Write a Python program of Years, Weeks & Days. It consists of two test cases
The below link contains Years, Weeks & Days - Question, explanation and test cases
https://drive.google.com/file/d/1hYY-kPr5I9do_Lcmq4XFLKyewJMM9zVT/view?usp=sharing
We need all test caese can be come while code was running
days = int(input("Enter the days\t"))
years = days // 365
remainder_years = 1329 % 365
print(years)
print(remainder_years // 7)
remainder_weeks = remainder_years % 24
print(remainder_weeks // 6)
Comments
Leave a comment