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
Why is this wrong
1 Votes
What is wrong with this?
0 Votes
Help me please)
1 Votes
I feel lost
0 Votes
Android development course
0 Votes
audio and video url
0 Votes
Commenting on lessons
0 Votes