Timeline for Flippign Lettesr Aroudn
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 28, 2017 at 4:01 | comment | added | xnor |
Looks like Python 2 saves 2 bytes by writing for w in input().split():print w[:-2]+w[:-3:-1], . In Python 3, extracting the last two characters would work well with print(*(''.join(a)+c+b for*a,b,c in input().split())) except that a needs to be remade into a string.
|
|
Dec 27, 2017 at 19:47 | history | answered | DJMcMayhem | CC BY-SA 3.0 |