Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def remove_element():
- deadman = ''
- n = ''
- for item in persons:
- if item.name == deadman:
- item.actions -= n
- if item.actions <= 0:
- persons.remove(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement