Mar-31-2019, 08:43 AM
Greetings all,
I am currently doing some practice, and I am running into an invalid script error. Here is the code. IDLE gives me an invalid syntax error and then highlights a1
I am currently doing some practice, and I am running into an invalid script error. Here is the code. IDLE gives me an invalid syntax error and then highlights a1
print ("Welcome to the Urban Daily") a1 = "J_Cole" a2 = "Drake" a3 = "Jay_Z" a4 = "Chance" print(a1, a2, a3, a4) UserInput = input(print("Select your favorite artist:\n")) if (UserInput == a1): print("You have selected," a1) elif (UserInput == a2): print("You have selected," a2) elif (UserInput == a3): print("You have selected," a3) elif (UserInput == a4): print("You have selected," a4) else: print("Selection is invalid")