Question: Complete the following problems in a Python module. Submit your documented Python source code file. 0) Put your name, date, and class in a header

 Complete the following problems in a Python module. Submit your documented

Complete the following problems in a Python module. Submit your documented Python source code file. 0) Put your name, date, and class in a header comment 1) Create a function that takes two integers representing scores and prints out "Team 1 wins" if the first is larger and "Team 2 wins" if the second is larger, or print out a message that they are equal. 2) Create a function countUpTo(n): that prints out every integer from 1 up to n. 3) Create a function printStars(n) that prints a number of asterisks (*) equal to n (on the same line). 4) Create a function double(x) that prints 2 * x. 5) Create a function countdown(n) that prints integers in reverse from n to 1. 6) Create a function bumps(x, n). Print out every integer from 1 to n, excluding numbers divisible by x. 7) The % symbol represents the modulus operator. Modulus performs division, but instead of returning the result of the division, it returns the remainder. Create a function is_even(n) that uses modulus to determine if n is even. Print out "[N] is even" if it is even and "[N] is odd" if it is odd (Replace N with the value of n)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!