scores_h1 = []
scores_h2 = []
scores_h3 = []
scores_h4 = []
scores_h5 = []
scores_h6 = []
scores_h7 = []
scores_h8 = []
scores_h9 = []
for i in range(1,10):
value = int(input("Score: "))
string = f'scores_h{i}'
string.append(value)
I am trying to append value
to scores_h1
the first time the loop runs. And then the second time to scores_h2
and then the third time to scores_h3
and so on.. Is there a way to do that?