Created
July 31, 2013 18:28
-
-
Save OrangeTux/6124749 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
""" 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