Skip to main content

What is list slicing when it has 2 colons? [duplicate]

In codecademy, the instructions say not to use [::-1] The program I am trying to accomplish is to print a string in reverse without using the reversed() function or using [::-1] Can somebody please let me know what it means in general? I know I'm not supposed to be using it, but I want to know. Thanks!



source https://stackoverflow.com/questions/74228481/what-is-list-slicing-when-it-has-2-colons

Comments