4 ms·
Indeed. A cosmetic refinement, but it should really be: python -c "print ''.join(reversed(list(open('test.py'))))" That's even two characters less!
by Luyt 17y ago
Indeed. A cosmetic refinement, but it should really be:
python -c "print ''.join(reversed(list(open('test.py'))))"
That's even two characters less!
- spudlyo 17y agoGood, but too easy. Assume you can't keep the file in memory.