python-by-example-150-chall.../challenges12-19/challenge-015.py
2019-07-17 09:56:46 +03:00

10 lines
262 B
Python

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))