Skip to content

Instantly share code, notes, and snippets.

@OrangeTux
Created July 31, 2013 18:28
Show Gist options
  • Save OrangeTux/6124749 to your computer and use it in GitHub Desktop.
Save OrangeTux/6124749 to your computer and use it in GitHub Desktop.
""" computer.py """
from internet import visit_website
class Computer:
def __init__(self):
print('Booting')
def play_game(self, game):
print('You are playing %s.' % game)
def write_document(self):
print('Writing interesting book')
def watch_game_of_thrones(self):
print('Hodor!')
def visit_website(self, website)
visit_website(url)
def __del__(self):
print('It\'s now save to turn of your computer')
// internet.py
def visit_web(self):
return 'It works!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment