26. String reversal

Use string indexing to reverse a string, not a for loop or for-comprehension.

26.1. Don’t do this

1name = 'one-off coder'
2name = ''.join([name[i] for i in range(len(name) - 1, -1, -1)])

26.2. Do this

1name = 'one-off coder'
2name = name[::-1]