Комментарии:
Sir if I write a[-1:-4]
The output is [ ]
I expected something like [6,5,4] when the a variable was this :-a=[1,2,3,4,5,6]
Sir so can u tell why this happened.....is it by default that python does slicing from left to right.
Do you have any questions on this topic? Please share your feedback in the comment section below and we'll have our experts answer it for you. Thanks for watching the video. Cheers!
Ответить