Question: Lab Assignment For today's lab practice we are going to write four functions each will make use of a loop The following describes what each

 Lab Assignment For today's lab practice we are going to writefour functions each will make use of a loop The following describeswhat each function should do countDown (first, last) This function takes twoparameters first and last then counts down by 1 from the first

Lab Assignment For today's lab practice we are going to write four functions each will make use of a loop The following describes what each function should do countDown (first, last) This function takes two parameters first and last then counts down by 1 from the first number to the last. Each number is printed with a space instead of a new line. The last statement of the function should be an empty print to print a newline Example countDown(9,3) 987 65 43 oddNumbers (N) This function takes a number N and returns a list containing all of odd numbers from 1 to N (including N if it is odd) Example: print(oddNumbers(8)) reverse(s) This function takes a string s and returns the string in reverse. Example: print(reverse("Chicken") nekcihC countInput This function ask the user for input until they enter the text stop. The function will return the number of things the user inputted Example Given the following input the function count Input() will return 4 countInput This function ask the user for input until they enter the text stop. The function will return the number of things the user inputted Example: Given the following input the function countInput() will return 4 stop All of these functions require use of a loop. You should write your own main function that calls these functions to test there output. 1 def countDown(first, last): pass 4 def oddNumbers(N): pass 7 def reverse(s): pass 10 def countInputO: pass 12 13 # Write some tests here to see if your code works 14 def mainO: 15 pass 16 17 # Do not modify the code below 18 ifname'main

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!