Lowest price ever! Learn Generative AI for 48% less!
Get my discountQ&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
0 Votes
10 AnswersHot today
Words in Intermediate C#
1 Votes
..
1 Votes
Code couch: Halloween candy
1 Votes
Price of generative AI
1 Votes
Solo Learn Badges
0 Votes
Is this a bug?
0 Votes
Event on AI
0 Votes