Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In python please The following describes what each function should do countDown(first, last) This function takes two parameters first and last then counts down by
In python please
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) 9 876543 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")) nekcih 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 1 def countDown(first, last): 2 3 4 def oddNumbers(N): 5 6 7 def reverse(s): 8 9 pass pass pass 10 def countInput(): pass 12 13 # Write some tests here to see if your code works 14 def main(): 15 16 17 # Do not modify the code below 18 if name- 19 pass main mainStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started