Skip to content

Instantly share code, notes, and snippets.

@Gateswong
Created January 25, 2017 20:51
Show Gist options
  • Save Gateswong/462a96524f70337cd61242abd44fe688 to your computer and use it in GitHub Desktop.
Save Gateswong/462a96524f70337cd61242abd44fe688 to your computer and use it in GitHub Desktop.
10 20 40 30 50
def read(filename):
fp = open(filename, 'r')
items = fp.readline().split(' ')
fp.close()
return items
if __name__ == '__main__":
numbers = [int(x) for x in read('input.txt')]
# Play around with numbers here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment