Dec-26-2020, 03:24 PM
One of the options below prints "a = 1" as the first term and the other doesn't. WHY ?
for a in range(1, 4, 1): # This option prints a = 1 as first term in results
#for a in range(1, 50, 10): # This option does not print a = 1
print(a = ", a)
b = 0
while b < 5:
z = b*4
z += 1
print(" b = ",b)
for a in range(1, 4, 1): # This option prints a = 1 as first term in results
#for a in range(1, 50, 10): # This option does not print a = 1
print(a = ", a)
b = 0
while b < 5:
z = b*4
z += 1
print(" b = ",b)