Created
August 20, 2019 01:02
-
-
Save dmoneyballer/c4f121ebc34e9c89bbcf2aaf842cea70 to your computer and use it in GitHub Desktop.
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
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