!using python 3!
first of all, i am a rather noobish python coder, so please dont make the answers too hard to understand.
I was trying to get an input from the user with raw_input(), that input had to be the same as a predefined string, i came at:
x = raw_input("yes or no: ") if x == yes #here i got to the problem, #how do i check for a hardcoded string from an input? if x == no #same thing
this didnt work of course, but how to ge it to work?
Edited 1 Year Ago by matjojo