Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command = input()
- my_list = [0] * 10
- while not command == 'End':
- command = command.split('-')
- index = int(command[0]) - 1
- to_do = command[1]
- my_list[index] = to_do
- command = input()
- print([el for el in my_list if el != 0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement