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

8 lines
222 B
Python

foods_list = {}
for i in range(4):
j = i + 1
foods_list[j] = str(input('Enter favourite food : '))
print(foods_list)
del foods_list[int(input('Enter food number to delete it : '))]
print(sorted(foods_list.keys()))