0

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 )

Edited by Reverend Jim: Moved to software development forum

4
Contributors
3
Replies
32
Views
1 Year
Discussion Span
Last Post by Husoski
0

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.

0

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

Edited by Husoski

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.