Question: The counter function counts down from start to stop when start is bigger than stop, and counts up from start to stop otherwise. Fill

The counter function counts down from start to stop when start is 

The counter function counts down from start to stop when start is bigger than stop, and counts up from start to stop otherwise. Fill in the blanks to make this work correctly. 1- def counter(start, stop): X = start if ---: return_string while x >= stop: return_string += str(x) if ---: return_string += 2 3 - 4 "Counting down: 5 - 8 10 - else: "Counting up: return_string while x

Step by Step Solution

3.44 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def counterstart stop x start if x stop returnstring Counting down while x stop retur... View full answer

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 Programming Questions!