Last active
August 29, 2015 14:26
-
-
Save saleph/7d9f864f245d74e23236 to your computer and use it in GitHub Desktop.
Print lines of a file conversly
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
__author__ = 'tom' | |
import sys | |
file_name = sys.argv[1] | |
source = open(file_name).readlines() | |
print(''.join(source[::-1])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment