Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 5

RPG Program [Python 3]

Solved! Go to Solution.

Hey guys!

I'm trying to make a ''RPG program'' on Python but i'm having problems...

I don't know how to do a ''Party counter'' :/

For example:

The program will ask how many players and then, based on the number of players, it will ask the players names.

But I don't know how to do it... I'm a noob in programing, sorry ;-;

My program now:

name = 0
mem = int(input('How many players?:'))
for c in range(1, mem + 1):
name = str(input('Player {} name:'.format(c)))
lis = [name, name]


If you can, please give me any tip to improve my programming skills 

Thanks for reading! :)

4 Replies
Commander Lvl 2
Message 2 of 5

Re: RPG Program [Python 3]

You can do something like this:

mem = int(input('How many players?: '))
players = list()
for c in range(0, mem):
    players.append(input('Player {} name:'.format(c + 1)))

With this code you ask the number of players and than you create a list with the names.


If you have a repository on github i can follow you and from there help you.


Hope this solve your problems

Copilot Lvl 3
Message 3 of 5

Re: RPG Program [Python 3]

Thanks, bro! You saved me!! :D

I'll create a repository later because I want to know more about Git and programming... But, once more, thanks for helping!!


Commander Lvl 2
Message 4 of 5

Re: RPG Program [Python 3]

Keep me update 🙂




Copilot Lvl 3
Message 5 of 5

Re: RPG Program [Python 3]

Hey! What's up!? :)

I've created a repository, so if you want you can follow me there!

See ya!