Advertisement
Sephinroth

def

Feb 9th, 2021
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def remove_element():
  2.     deadman = ''
  3.     n = ''
  4.     for item in persons:
  5.         if item.name == deadman:
  6.             item.actions -= n
  7.             if item.actions <= 0:
  8.                 persons.remove(item)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement