News

That’s because there just so happens to be a method built-in to Python that will do it for you instantly. And it has a logical name, too: reverse ... the second number is non-inclusive).
If we leave a number blank and just add a colon, then Python will refer to the first or last value respectively. You could, alternatively, reverse your string manually. This might be useful if you ...