Skip to content

Instantly share code, notes, and snippets.

@kateolenya
Last active March 4, 2019 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kateolenya/f9c563905c167f467f18ea816a330340 to your computer and use it in GitHub Desktop.
Save kateolenya/f9c563905c167f467f18ea816a330340 to your computer and use it in GitHub Desktop.
Basic class in Python3
#!/usr/bin/python3
class Phone:
number = "111-11-11"
def print_number(self):
print( "Phone number is: ", self.number )
my_phone = Phone()
my_phone.print_number()
input( "Press Enter to exit" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment