so I'm making a dice rolling game for some homework and I was adding a feature so you could have as many players as you want but I've come to a problem. I want to be able to change the name of the variable it prints in every iteration. e.g guess0 then guess1 etc but I can't work out how to do it. I expect it to print the value of each variable every iteration of the for loop.
for dice in range(player_no):
exec(f'guess{dice}=random.randint(1,7)')
for i in range(player_no):
print(guess,{i})
I've tried looking for answers on lots of different sites but none of them seemed to fix the problem I hoped some of you could help.