python-by-example-150-chall.../challenges69-79/challenge-074.py
2019-07-20 16:01:50 +03:00

6 lines
249 B
Python

colors_list = ['red', 'yellow', 'blur', 'orange', 'purple', 'black', 'brown', 'green', 'sky', 'gray']
print(colors_list)
start = int(input('Enter number between 0-4 : '))
end = int(input('Enter number between 5-9 : '))
print(colors_list[start:end])