python-by-example-150-chall.../challenges12-19/challenge-015.py
2025-05-26 06:49:34 +08:00

8 lines
192 B
Python

color = str(input('Enter you favourite colour : '))
Color = color.capitalize()
if Color == 'Red':
print('I like red too')
else:
print('I don\'t like {0}, I prefer red'.format(color))