Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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 main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

2. (1 point) Given AABC, tan A b b

Answered: 1 week ago