Unresponsive input

Question:

I’m trying to make a game where you type in commands and the game responds.

Question: Why is my user input not responding or just kind of breaking out of the program when I enter something?

Here is the part

   # paths
    def path1():
        coins = 0
        gem = 0
        print("Welcome to, community manager.")
        print("Type start")
        if cmd == "start":
            print(f'''Welcome {user} I will give you 10 coins to start with.
            you can always type balance to check your coins
            ''')
            sleep(1.5)
            coins = coins + 10
     

There is also a while loop running the cmd = input(">>> ") but it is at line one.

Asked By: Jason

||

Answers:

There is no point in your code where you ask for input. After your print statement where you say "Type start" just add:

cmd = input('>')
Answered By: Connor Dudley
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.