Hi,
I want the program to ask how many players that is in the game, and then depending on what number you wrote it's going to ask for every players name.
I think there's something wrong in the for loop. How do I make it work??
def numberOfPlayers ():
a = raw_input("How many players are you? ")
number = numberOfPlayers ()
def players():
player = raw_input("What s your name? ")
return player
for a in range (0, len(number)):
players()
I want the program to ask how many players that is in the game, and then depending on what number you wrote it's going to ask for every players name.
I think there's something wrong in the for loop. How do I make it work??
def numberOfPlayers ():
a = raw_input("How many players are you? ")
number = numberOfPlayers ()
def players():
player = raw_input("What s your name? ")
return player
for a in range (0, len(number)):
players()
Comment