Is it possible to use a user input to create dictionaries in python using loops or somethin?

前端 未结 0 1478
情话喂你
情话喂你 2020-11-29 14:50

\'\'\'

number_of_players = int(input(\'how many players?:\'))

for i in range(number_of_players):
    "player{}".format(i) = {}
     print(i)


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题