Hacker News new | past | comments | ask | show | jobs | submit login

#Do the same thing in python

from sys import argv

open(argv[2], 'w').writelines(sorted(open(argv[1])))




That's not exactly a Pythonic example...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: