Question: I need help getting the correct outputs for 4.2.2: Basic while loop with user input. in zybooks. user_num = int(input()) while user_num>=1: print('Body') user_num =

I need help getting the correct outputs for 4.2.2: Basic while loop with user input. in zybooks.

user_num = int(input()) while user_num>=1:

print('Body') user_num = int(input())

print('Done.')

#user entry in line 2

Testing with inputs: 9 5 2 -1

Your output Body Body Body Done.

Testing with inputs: 0 -17 Output differs.

See highlights below. Special character

legend Your output Done.

Expected output Body Done.

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!