E
EAS
In theory, the following code should ask for the user to enter a value for h
until he/she enters hello or goodbye.
h = "hi"
while h != "hello" or "goodbye":
h = raw_input("Value for h:")
But the program keeps asking for a value no matter what I enter. Why doesn't
it work?
until he/she enters hello or goodbye.
h = "hi"
while h != "hello" or "goodbye":
h = raw_input("Value for h:")
But the program keeps asking for a value no matter what I enter. Why doesn't
it work?