fork download
  1. while True:
  2. ui = input(">>> ")
  3. if ui in ['hi', 'HI', 'Hi']:
  4. print("Hello")
  5. else:
  6. print("I did not understand what you said")
  7.  
Runtime error #stdin #stdout #stderr 0s 9992KB
stdin
Hi
How do you do?
stdout
>>> Hello
>>> I did not understand what you said
>>> 
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
EOFError: EOF when reading a line