python-by-example-150-chall.../challenges12-19/challenge-015.py

10 lines
262 B
Python
Raw Normal View History

2019-07-17 14:56:46 +08:00
color = str(input('Enter you favourite colour : '))
if color == 'red':
print('I like red too')
elif color == 'RED':
print('I like red too')
elif color == 'Red':
print('I like red too')
else:
print('I don\'t like {0}, I prefer red'.format(color))