Can anyone please helo me with st [-20::-2] in st value of 'python Narayana' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone please helo me with st [-20::-2] in st value of 'python Narayana'

how the answer can be none...

6th Aug 2018, 12:11 AM
shanawaz sk
shanawaz sk - avatar
1 Answer
+ 4
your -20 states to start 20 characters from the end or before the string starts. your -2 says to go backwards skipping every other character. backwards from before the string starts is nothing so no output.
6th Aug 2018, 5:06 AM
John Wells
John Wells - avatar