Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'y' and 'n' is not defined. #1

Open
FredBabino opened this issue Jan 17, 2015 · 3 comments
Open

Error 'y' and 'n' is not defined. #1

FredBabino opened this issue Jan 17, 2015 · 3 comments
Labels

Comments

@FredBabino
Copy link

When playing in "duel" challenges against random or friends it asks to whether or not to answer all questions; answering "y" or "n" creates an error such as the one listed below.

(1) marlana.hodges NORMAL PENDING_APPROVAL
Select a game to win: 1
Answer all questions? (Y/N)y

Traceback (most recent call last):
File "/Users/Desktop/Trivia Crack/TriviaCrack.py", line 130, in
main()
File "/Users/Desktop/Trivia Crack/TriviaCrack.py", line 124, in main
play_game(g,loop=True if (input("Answer all questions? (Y/N)")+" ")[0].lower()=='y' else False)
File "", line 1, in
NameError: name 'y' is not defined

@robertquitt
Copy link
Collaborator

What version of Python are you using? This script was made and tested for python 3. I should be able to change it to work for both versions soon.

@robertquitt
Copy link
Collaborator

To fix this issue for you you will have to replace input with raw_input. I will make a fix soon.

@FredBabino
Copy link
Author

python 2.7.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants