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