So I have this program that creates variables automatically depending on the number that the user inputted, but I need a way to call the variables again to retrieve the value from them.
This is what I have:
count = int(input("
for x in range(0, ):
globals()['wordNumber%s' % x] = input("Word: ")
number = 1
while True:
print (wordNumber.str(number))
number = number + 1
For the print part, it tries to print just wordNumber which doesn't exist, so there is an error. I need it to somehow add wordNumber together with a number (1-5) so it can print(wordNumber1) or print(wordNumber3)