Mofeoluwa

Untitled

Apr 1st, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. class Zombie():
  2.     def __init__(self,health=100,brains_eaten=5):
  3.         self.health = health
  4.         self.brains_eaten = brains_eaten
  5. bob = Zombie(80,5)
  6. sally = Zombie(120,3)
  7. benjamin = Zombie()
Advertisement
Add Comment
Please, Sign In to add comment