Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class testclass():
- def __init__(self):
- self.cardval = 10
- class testclass2:
- def __init__(self):
- self.cardval2 = testclass().cardval + 10
- print(self.cardval2)
- test = testclass2()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement