Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from collections import deque
- customers = deque([])
- while True:
- command = input()
- if command == 'End':
- break
- elif command == 'Paid':
- print('\n'.join(customers))
- customers.clear()
- else:
- name = command
- customers.append(name)
- print(f'{len(customers)} people remaining.')
Advertisement
Add Comment
Please, Sign In to add comment