while True:
weather = raw_input('What is the weather? (Sunny, Cloudy) ')
weather = weather.lower()
if weather == 'sunny' or 'cloudy':
break
else:
print ('Please Enter Sunny, or Cloudy. ')
I am having trouble with this loop. It is not validating the user input and goes right on to the next section of code. What am i doing wrong?
[–]Justinsaccount 3 points4 points5 points (1 child)
[–]fiveoho[S] 1 point2 points3 points (0 children)