Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. class Huynya:
  2.     def __init__(self):
  3.         self.value = "hui"
  4.  
  5.     def __add__(self, huynya):
  6.         h = Huynya()
  7.         h.value += huynya.value
  8.         return h
  9.  
  10.     def __str__(self):
  11.         return "uyebishe"
  12.  
  13.  
  14. huynya = Huynya()
  15. for i in range(0, 5):
  16.     print("ti " + huynya.value)
  17.  
  18. huynyaL = Huynya()
  19. huynyaL.value = "sos"
  20. for i in range(0, 5):
  21.     print("tvoya mamka " + (huynya + huynyaL).value)
  22.     print("tvoy batya " + str(huynya))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement