RPG Program [Python 3]

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’’ :confused:

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 cin 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! :slight_smile:

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

1 Like

Thanks, bro! You saved me!! :smiley:

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

1 Like

Keep me update :slightly_smiling_face:


Hey! What’s up!? :slight_smile:

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

See ya!

1 Like