my_string = “This is MY string!”
print (my_string[0:18:-1])
I expect to see this: T
But I don’t get anything.
my_string = “This is MY string!”
print (my_string[0:18:-1])
I expect to see this: T
But I don’t get anything.
Hmm, can’t seem to figure out what -1 is doing. I’ve usually used it for accessing the last element.