https://365datascience.com/dwqa-answer/answer-for-problem-in-python-programming/ -
Hi Prafful
thanks for reaching out!
This particular example is used to reverse a string using a slicer. The -1 is the step, so at each iteration we’re going back one element at a time. Here we haven’t specified the length of the interval to be reversed, so Python reverses the whole string.
Here is a link with more on the topic of slicing:
https://www.educative.io/edpresso/how-do-you-reverse-a-string-in-python
Best,
Eli
#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy
No comments:
Post a Comment