I have a simple problem in python. I am trying to create a varible which uses the value of another variable in its name. A pertinent part of the code is:
for m in range (1,4):
if m ==1:
suffix = "top"
elif m == 2:
suffix = "mid"
elif m == 3:
suffix = "btm"
game_battles_{suffix} = [["Match", "Winner", suffix]]
print(game_battles_suffix)
The issue is I won't three versions of game_battles_{suffix} - game_battles_top , mid, btm etc
I have a feeling this is an easy one but I can quite figure it out