Mon Jan 31 2022 05:30:10 GMT+0000 (Coordinated Universal Time)
Saved by @marcpio
# step size of -1 goes through string backwards, hence [::-1] generates a reversed string word = 'stop' word[::-1] >> 'pots'
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments