Guest User

Untitled

a guest
Oct 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class MixedName:
  2. name="privet"
  3. def __init__(self,value):
  4. self.ill=value
  5. def prt():
  6. print(name)
  7.  
  8.  
  9. if __name__=="__main__":
  10. print(MixedName(10).prt())
  11.  
  12. class MixedName:
  13.  
  14. def __init__(self,value):
  15. self.name = "privet"
  16. self.value = value
  17. print(value)
  18. def prt(self):
  19. print(self.name)
  20.  
  21.  
  22. if __name__=="__main__":
  23. mn = MixedName(10)
  24. print(mn.prt())
Add Comment
Please, Sign In to add comment