subject

This is the question write another function that, given the day that the month starts on and the number of days in that given month, returns the number of days that Inky, Blinky, Pinky and Clyde will get to play pinball in that month. Your function should return a tuple of integers with the respective signature ordering (Inky, Blinky, Pinky, Clyde).

The function provided will increment the day of the week to the next correct day. Use it wisely! def incDay(day) : if (day == "Sunday") : return "Monday" elif (day == "Monday") : return "Tuesday" elif (day == "Tuesday") : return "Wednesday" elif (day == "Wednesday") : return "Thursday" elif (day == "Thursday") : return "Friday" elif (day == "Friday") : return "Saturday" elif (day == "Saturday") : return "Sunday"

This is what I have done so far:

def pinball(day_week, day_month):
if day_month % 4 == 0:
return "Pinky"
else:
if day_week[0] == "T":
return "Inky"
elif day_week[0] == "S":
return "Blinky"
else:
return "Clyde"

def incDay(day) :
if (day == "Sunday") :
return "Monday"
elif (day == "Monday") :
return "Tuesday"
elif (day == "Tuesday") :
return "Wednesday"
elif (day == "Wednesday") :
return "Thursday"
elif (day == "Thursday") :
return "Friday"
elif (day == "Friday") :
return "Saturday"
elif (day == "Saturday") :
return "Sunday"

#Here I don't know what to do#

#these are the test cases#
print("#1", pinball("Sunday",31) == (7,8,7,9))
print("#2", pinball("Wednesday",30) == (7,6,7,10))
print("#3", pinball("Wednesday",0) == (0,0,0,0))

Thats all
Plz help

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
How can i clip a picture to a question on the computer?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
You know the right answer?
This is the question write another function that, given the day that the month starts on and the nu...
Questions
Questions on the website: 13722359