Answer to Question #219118 in Python for Hari nadh babu

Question #219118

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

1
Expert's answer
2021-07-24T07:04:27-0400
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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS