Discussões Q&A
Help : ') Javascript
 2 Votos
 3 RespostasWhy 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 Voto
 10 RespostasHow can I make a reference for a list of variables. If false i want the system to check through all my variable to make sure they are false. 
Code- 
var2 = "Tanner"
var3 = "Jake"
question = input('What is your name? ')
if question == var2:
   print('\nWelcome Back Tanner!')
if question == var3:
   print('\nWelcome Back Jake!")
if question !=( This is where i need help!)( Is the != the correct way to write not equal?)
 0 Voto
 4 RespostasWhy not working 
 -4 Votos
 4 RespostasPopular hoje
How create a new language ?
 1 Votes
Beginner question
 0 Votes
I need help to solve this
 0 Votes
Remove
 0 Votes
Project
 0 Votes