Question: Trace the following loop. of value1 - 6 value2 - 2 while value1 > 1: value2 = value22.5 value1 = valuel - 2 print (value2
Trace the following loop. of value1 - 6 value2 - 2 while value1 > 1: value2 = value22.5 value1 = valuel - 2 print ("value2 is "str(value) + " " "value1 is strivalue 1)) tion a) What is the value of the variables and what is the value of the condition after each iteration of the loop? Fill in the tracing table below. b) What does the program print
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
