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
import os | |
import subprocess | |
def get_google_news_homepage(): | |
print("this will fetch the current google news home page as text.") | |
print("it will use the requests and lxml libaries") | |
print("press enter to continue") | |
input() | |
import requests |
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
def display(s): | |
print (s) | |
display('Hello from single-file gist') |
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
def display(s): | |
print (s) | |
display('Hello from single-file gist') |
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
from file2 import display | |
if __name__ == "__main__": | |
display("Hello from file1 in multi-file gist") |