LeetCode Day 6
Loading...
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
![](https://leetcode.com/static/images/LeetCode_Sharing.png)
Loading...
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
![](https://leetcode.com/static/images/LeetCode_Sharing.png)
Python sublist
So confusing...
>>> lst = "abcdefg"
>>> lst[::-1]
'gfedcba'
>>> lst[:-1:-1]
''
>>> lst[0:-1:-1]
''
>>> lst[0::-1]
'a'