Hi guys. I have a program where users enter in their username and password. If the password and username match with the record stored in a database, they are able to pay a game which opens in a new window. If the entered information is correct, I want to print a message to the screen but my code is not working. There error is in the code below.

display_output_string variable = "You details are correct, you may now progress to the game"
prit(display_output_string variable )

Recommended Answers

All 3 Replies

I'm using your code

display_output_string variable = "You details are correct, you may now progress to the game"
prit(display_output_string variable )

and I get

  File "foo.py", line 1
    display_output_string variable = "You details are correct, you may now progress to the game"
                                 ^
SyntaxError: invalid syntax

There must be an error in the syntax of python, near the word variable.

I guess you forgot an underscore somewhere.

Also, did you mean "print" instead of "prit"?

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.