• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

Why does an error pop up here: var1 = "Trey" var2 = "Tanner" var3 = "Ellis" var4 = "Jake" var5 = "Christine" question = input('What is your name? ') if question == "var1": print('Welcome Back Trey') Error: Traceback (most recent call last): File "Hi.py", line 6, in <module> question = input('What is your name? ') File "<string>", line 1, in <module> NameError: name 'Trey' is not defined
else-statementsif-statementspython
0 Votes
10 Answers
19th May 2017, 9:48 PM
Tanner
< Previous1...34Next >
Hot today
Problem from code coach.
2 Votes
HTML quest i tried all but idk why showing wrong.
3 Votes
Responsive Layout with Bootstrap
4 Votes
Where can I practice pyhton in soloelarn
0 Votes
Languages for animation and games development ?
1 Votes
Coding foundations vs Python Developer
0 Votes
Flutter
0 Votes
I just got here and python is going well bur waiting for the hearts nahhhđŸ„Č
0 Votes
How to start becoming a programmer
0 Votes
What is the problem with this code?
0 Votes