List slicing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

List slicing

Please explain me slicing list. x=['a','b','c','d','e','f','g','h'] x[6:2:-1] how the start and stop are considered? I mean in which direction start and stop are done?

15th Feb 2019, 3:27 PM
Uthpala
1 Answer
15th Feb 2019, 3:42 PM
portpass