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, 21.06.2019 14:00
Just a heads up these questions are relating to a program known as gimp. (these are all fill-in-the-blank)will give brainliest-! the tool option allows you to blur the edges of the selection making it look less sharp.which option do you choose in the add layer mask dialog box to turn your selection into a mask? is a type of filter that distorts a layer making it appear like you’re looking through dirty glass.in which drop-down menu do you find the option to add a blur to your background image layer? what shape appears when you’ve completed making your selection with the free select tool (to let you know you’ve reached the beginning of your selection)? when using the toggle quick mask, everything outside of the selection becomes a color.when painting with the color with the toggle quick mask on, it removes part of your selection making it smaller.when painting with the color with the toggle quick mask on, it adds to your selection making it larger.to use the paths tool, click and add (a tiny circle).to close your selection when using the paths tool, press and hold while clicking the first anchor point you created.the tool works just like the free select tool by clicking around an image to select it.
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
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
Chemistry, 19.09.2019 13:30
Questions on the website: 13722363