In python, I have this list containing
['HELLO', 'WORLD']
how do I turn that list into
['OLLEH', 'DLROW']
>>> words = ['HELLO', 'WORLD']
>>> [word[::-1] for word in words]
['OLLEH', 'DLROW']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With