I need to change the text in the variable after one round of the cycle.
Like first round of loop a="A", second round a="B".
a = ("A")
a1 = ("B")
a2 = ("C")
a3 = ("D")
a4 = ("F")
i = 0
while i < 5:
print(a)
a += 1
i += 1
>Solution :
Put the values in an array and access the values:
a = ['A', 'B', 'C', 'D', 'E']
i = 0
while i<5:
print(a[i])
i = i+1