Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MixedName:
- name="privet"
- def __init__(self,value):
- self.ill=value
- def prt():
- print(name)
- if __name__=="__main__":
- print(MixedName(10).prt())
- class MixedName:
- def __init__(self,value):
- self.name = "privet"
- self.value = value
- print(value)
- def prt(self):
- print(self.name)
- if __name__=="__main__":
- mn = MixedName(10)
- print(mn.prt())
Add Comment
Please, Sign In to add comment