3 ms·
It's not obvious for a non-Pythonista, but the if .. else .. is meant to be on the previous line. It's a ternary conditional like cond?a:b in C (with the condit
by dbaupp 14y ago
It's not obvious for a non-Pythonista, but the if .. else .. is meant to be on the previous line. It's a ternary conditional like cond?a:b in C (with the condition in the middle).
- fmoralesc 14y agoYes, they should have broken the line before `word[1:]` so it was clearer.