3 Answers
+ 3
Why not start with the python course?
https://www.sololearn.com/Course/Python-for-Beginners/?ref=app
0
s = "abcde"
# Slice: s[start: stop: step].
# Start and stop indices for s.
# The slice take all the content from start to stop in s, but not the value at index stop itself.
# s[1] = "b"; s[3] = "d"
# If step is negativ: the direction will be in reversed order.
print(s[1:4:1]) # bcd
print(s[3:0:-1]) # dcb