Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- forest = 1000
- class Kremlin:
- def __init__(self):
- self.cut = random.randint (1, 17)
- self.sklad = 0
- #self.myles = forest
- def cut(self):
- if self.cut > forest:
- self.cut = forest
- self.myles = forest - self.cut
- self.sklad = self.sklad + self.cut
- else:
- forest = forest - self.cut
- self.sklad = self.sklad + self.cut
- return self.cut
- return self.sklad
- new_Kremlin = Kremlin ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement