Question: NOTE : Is learning Python programming (currently on chapter 5) with the following textbook: Book Starting Out With Python 3rd Edition by Gaddis
NOTE: Is learning "Python programming" (currently on chapter 5) with the following textbook:
Book "Starting Out With Python" 3rd Edition by Gaddis


Introduction Write a Python program that performs the task below. Remember that your program will be graded on style as well as correctness, so don't forget your main function and program comments! You can test your program by running the run tests.py file. Log in to take the Quiz with your OCC username and student ID. When you have finished and submitted the quiz, check with me to make sure that I have received it. Instructions Part 1 Write the following functions (in quiz.py). You should not ask the user for any input (including . check four kind: Takes four integer parameters. If all four numbers have the same whatsoever roll: Takes zero parameters. Returns a random integer in the range both 1 and 6) value, return 50. Otherwise, return 0. For example, if the function were passed the values 2, 4, 3, 3, it should return 0. If it were passed 4, 4, 4, 4, it should return 50 check odd sum: Takes four integer parameters. If the sum of the numbers is odd. return the sum plus 2. If the sum of the numbers is even, return the sum of the numbers. Remember you can use modulus division to check if a number is divisible by two. For example, if the function were passed the values 3, 3, 4, 1, the sum is 3 +3+ 4 + 1 11 . Since 11 is odd, you would return 11 + 2 13 get mao: Takes two integer parameters. Return the larger of the two values. For example, if the function were passed the values 10 and 17, it should return 17. print-message: Takes two integer parameters named points and rolls, in that order! If points is greater than or equal to 90, it should print "You win! You have X points" where X would be replaced by the point value. For example, if points has the value 104, it would print "You win! You have 104 points". If rolls is greater than or equal to 5, it should print "You've run out of rolls. You got X points", where X is again replaced by the value of points. It should not print anything else. If neither of these conditions are met, the function does nothing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
