Reverse string in Python

nums = "0123456789"
print(nums[::-1]) # -1 is the step size - backward step