Categories
Why is the last element of the list not displayed?
How does it even work? How can I include the last element of the list when slicing?
a = "123456789" print(a[-1]) # Выводит 9 print(a[-3:-1]) # Выводит 78
Answer the question
In order to leave comments, you need to log in
How does it even work?
How can I include the last element of the list when slicing?
-1
-3:
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question