Python: Change variable suffix with for loop
问题 I know this was asked a lot but I can not work with/understand the answers so far. I want to change the suffix of variables in a for loop. I tried all answers the stackoverflow search provides. But it is difficult to understand specific codes the questioner often presents. So for clarification I use an easy example. This is not meant as application-oriented. I just want to understand how I can change the suffix. var_1 = 10 var_2 = 100 var_3 = 1000 for i in range(1,4): test_i = var_i + 1 print