Answer the question
In order to leave comments, you need to log in
How to get a slice in Python to the right?
I recently started learning python and got to slices. Given a list.
1 2 3 4 5
From it we get
2 3 4 5 0
That's how a = a[1:] + [0]
And how to get it?
0 1 2 3 4
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question