**Hi I am new here, I am learning Python, but I am mess up on this script and it keep asking the same input question... please help thanks..

ps how do you do What you name in pygames???

Justin**

#SET UP GAME

import random

# named veriables
s="Strengh"
hp="Hit points"
mp="Magic Points"
arm="Armour valve"
tell="Intelligence"
bp="Backpack"
Figh="Fighter"
MU="Magic User"

#Numbered veriables
st=random.randrange(5,35)
hp1=random.randrange(5,25)
mp1=random.randrange(3,20)
arm1=random.randrange(1,5)
tell1=random.randrange(1,30)
sex=random.randrange(0,10)
age=random.randrange(14,30)

# define a loop
def Start_loop():
    done=False


    while not (done):
        choose=input("\nChoose a class please : f=Fighter, m=Magic User ")


        if choose =="f":
            print("\nYou are a "+Figh)




        elif choose =="m":
            if tell1<12:
                print("\nYou cannot be a "+MU+ " not enough "+tell)
                print("\nYou must be a "+Figh)

            if tell1>12:
                print ("\nYou are a "+MU)


        print ("\nPress s for character details or q for quit the game")
        if choose =="s":
            Build_Screen()
            done=True

        elif choose =="q":
            print("\n\n\nStopping\n.\n.\n.")
            print ("GoodBye.")
while not (done):

will loop until done==True
To get done==True in the code you posted, you have have to enter "s" on your only input line, i.e.

    choose=input("\nChoose a class please : f=Fighter, m=Magic User ")

You can also use a return statement to exit the funtion containing the while loop

You should mark this question as solved because it has been solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.