Advertisement
Clover_Casey715

Klevkov

Apr 2nd, 2020
2,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2. forest = 1000
  3.  
  4. class Kremlin:
  5.  
  6.     def __init__(self):
  7.         self.cut = random.randint (1, 17)
  8.         self.sklad = 0
  9.         #self.myles = forest
  10.  
  11.     def cut(self):
  12.         if self.cut > forest:
  13.  
  14.             self.cut = forest
  15.             self.myles = forest - self.cut
  16.             self.sklad = self.sklad + self.cut
  17.  
  18.         else:
  19.  
  20.                 forest = forest - self.cut
  21.                 self.sklad = self.sklad + self.cut
  22.  
  23.         return self.cut
  24.         return self.sklad
  25.    
  26.     new_Kremlin = Kremlin ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement