Question #475

Which syntax allows to print a string backwards?

The [::] syntax depicts extended slicing in Python. [::-1] returns a reversed string. (w3schools.com/python/python_howto_reverse_string.asp)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵