Answer to Question #220936 in Python for Hari nadh babu

Question #220936
Day Name - 2

Write a Python program ofDay Name - 2. It consists of two test cases



The below link contains Day Name - 2 - Question, explanation and test cases



https://drive.google.com/file/d/15INEQJDh6a79fAeJisG8oCJNJq12DtKw/view?usp=sharing



We need all test caese can be come while code was running
1
Expert's answer
2021-08-01T00:29:30-0400
D=input()
N=int(input())
dayNames = ['Sunday','Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
i = (N%7) -1 
if D in dayNames:
    dayIndex = dayNames.index(D)+i
    if dayIndex >= 7:
        dayIndex =- 7
    print(dayNames[dayIndex])




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