Computer Science, asked by sushilaneja5034, 10 months ago

In python what does (::-1) mean?

Answers

Answered by Anonymous
1

Answer:

Hi..

Explanation:

In python this is used to reverse using index here - 1 denotes from the end.. As start and stop value are not given...

For eg:

S="hello"

Print (s[::-1])

Will give the output as "olleh"...

________________end___________________

Hope it helps you

Please mark brainliest

Similar questions