Wondering how would the following for loop be changed to while loop.
While having the same output.
for i in range(0,20, 4):print(i)
Wondering how would the following for loop be changed to while loop.
While having the same output.
for i in range(0,20, 4):print(i)
as simple as that:
i = 0
while i < 20:print(i)i += 4