Computer Science, asked by adityarawat1507, 4 hours ago

Convert the following for loop into a while loop:
for k in range (20,10,-5):
print(k)

Answers

Answered by Aditya4111Upadhyay
0

Answer:

while True:

for k in range(20,15,-5):

print(k)

Explanation:

We can use while True loop to make this loop rup infinite in python. Note: You will not see -5 because it is out of the range.

Similar questions