Question: How many times will the following 'while' loop iterate? p = 2 0 q = 3 9 t = 3 9 while True: if p

How many times will the following 'while' loop iterate?
p =20
q =39
t =39
while True:
if p %8==0:
break
else:
p +=2
if t != q:
t -=1
else:
continue
How many times will the following 'while' loop

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