Created
December 16, 2018 23:34
-
-
Save Pharaoh00/7e3d9e9250f8abb1a88432c35eb4af6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Player: | |
def __init__(self, x, y): # This is the initiation for the class Player | |
self.x = x | |
self.y = y | |
def returnX(self): | |
return self.x | |
def returnY(self): | |
return self.y | |
player = Player(10, 10) # initiate x:10 - initiate y:10 | |
print("This is the X: {} from the class Player.".format(player.returnX())) | |
print("This is the Y: {} from the class Player.".format(player.returnY())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment