4th day of python challenges 69-77
This commit is contained in:
7
challenges69-79/challenge-073.py
Normal file
7
challenges69-79/challenge-073.py
Normal file
@@ -0,0 +1,7 @@
|
||||
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()))
|
Reference in New Issue
Block a user