New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
What’s this error
-1 Vote
10 AnswersWhy 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
0 Votes
10 AnswersHot today
Android studio Tutorial
1 Votes
Why output is 0 for from_chars
2 Votes
Cyber security
0 Votes
Personal chat
1 Votes
Bash
0 Votes
Why exception is not handled
1 Votes
Adding image to html
0 Votes
Links of cmy codes
4 Votes
Error...
1 Votes