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 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
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
question
Mathematics, 06.05.2020 22:09
question
Mathematics, 06.05.2020 22:09
question
Mathematics, 06.05.2020 22:09
Questions on the website: 13722363