Answer the question
In order to leave comments, you need to log in
Dynamic variable?
a = 123
b = 'asd'
ab = a + b
while a > 0:
a = a - 1
print(a)
Answer the question
In order to leave comments, you need to log in
Didn't quite understand what you are trying to implement... look at the output, maybe something like that.
a = 123
b = 'asd'
ab = str(a) + b
list = []
while a > 0:
a -= 1
ab = str(a) + b
list.append(ab)
print(a)
print(ab)
print(list)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question