Skip to content

Instantly share code, notes, and snippets.

@saleph
Last active August 29, 2015 14:26
Show Gist options
  • Save saleph/7d9f864f245d74e23236 to your computer and use it in GitHub Desktop.
Save saleph/7d9f864f245d74e23236 to your computer and use it in GitHub Desktop.
Print lines of a file conversly
__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