player_list = []
for i in range(number_of_players):
    player = eval(input('Enter name: '))
player_list.append(player)
print(player_listlist)
if __name__ == '__main__':
    main()
How can I add values in the list using for loop in python?