4 Answers
+ 4
What have you searched for? Have you done the courses?
https://sololearn.com/compiler-playground/W3uiji9X28C1/?ref=app
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
https://www.sololearn.com/discuss/2733418/?ref=app
https://www.sololearn.com/discuss/1195160/?ref=app
https://www.sololearn.com/discuss/2498730/?ref=app
+ 3
Youmbi Bovan ,
slicing is introduced and explained in the tutorial `introduction to python`.
the exercises are using slicing with lists and with strings.
> if you don't feel comfortable with slicing it is recommended to reread the tutorials.
> slicing requires intensive study of this topic (positive indexing, negative indexing, combination with both of them, ...) . you can easily create exercise / test cases by yourself and work with them.
> you can use the playground, or if you have a python installation on your device, you can use the interpreter console to do the exercises.
the syntax is:
> string[start : stop : step]
> start (is optional) the index where slicing begins (inclusive). default is 0.
> stop (is optional) the index where slicing ends (exclusive). default is the string length.
> step (is optional) the interval between characters. default is 1.
+ 2
Youmbi Bovan ,
can you explain exactly what you are interested in? please give some more details?
0
I wish to know how to slice a string in python