Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Computer:
- """"""
- def __init__(self,xpos):
- """Constructor"""
- self.xpos = xpos
- def loc(self):
- print(self.xpos)
- com1 = Computer(33) #object
- com1.loc()
- com1.loc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement