Skip to content

Instantly share code, notes, and snippets.

@dmoneyballer
Created August 20, 2019 01:02
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 dmoneyballer/c4f121ebc34e9c89bbcf2aaf842cea70 to your computer and use it in GitHub Desktop.
Save dmoneyballer/c4f121ebc34e9c89bbcf2aaf842cea70 to your computer and use it in GitHub Desktop.
f = input('What\'s the file you want to read from?')
with open(f, 'r') as fr:
print('Name \t Hours \t Total Pay')
for line in fr:
print(f"{line.split()[0]} \t {line.split()[1]} \t {line.split()[2]}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment