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
Get step-by-step solutions from verified subject matter experts
