python-by-example-150-chall.../challenges52-59/challenge-059.py
2019-07-18 12:47:42 +03:00

11 lines
337 B
Python

import random
color = ['red', 'blue', 'green', 'orange', 'black']
select_color = random.choice(color)
ask = 0
while select_color != ask:
ask = str(input('Choose colour to guess computer colour! : ')).lower()
if select_color != ask:
print('You are probably feeling {0} right now'.format(select_color))
print('Well done')