Skip to content

Instantly share code, notes, and snippets.

@Telltak
Created January 15, 2012 18:50
Show Gist options
  • Save Telltak/1616749 to your computer and use it in GitHub Desktop.
Save Telltak/1616749 to your computer and use it in GitHub Desktop.
Trying to shorten exercise 17 to one line. (broken)
a=lambda f, m:open(__import__('sys').argv[f],m);if not raw_input("File %d bytes\nEnter continue, CTRL-C abort." % len(a(1, 'r').read())):a(2, 'w').write(a(1, 'r'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment