0

Python slicing

Which one is the most appropriate in slicing a list lst in python : print(lst[a:a:-1] = [] or Will it generate an error message? Thank you all.

27th Feb 2024, 6:51 PM
Oliver Pasaribu
6 ответов
+ 5
Why not use the compiler in the code playground and see what happens? If you have an error, you can see how to fix it or share the code for more accurate help. https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app https://sololearn.com/compiler-playground/WZ8lkR6gTex6/?ref=app https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
27th Feb 2024, 7:04 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
https://www.sololearn.com/Discuss/3266984/?ref=app
1st Mar 2024, 8:36 AM
Rain
Rain - avatar
+ 1
Yes, good example. I Will copy it. No, slicing in.python makes your work become easier for managing data in matrice form of any order or dimension. It Will be as same as practical generic developed software like maple, mathcad, mathematics or event Matlab. I observe that python now provide useful libraries to support the development of science like machine learning, numerical python for advanced computation, and the AI, ,ScyPy, Pyzen, Pycharm, webscrapping libraries and many more. But I haven't use the GUI yet. I Saw the development of latest version of developed Matlab. Yes.
1st Mar 2024, 2:05 PM
Oliver Pasaribu
0
Hey
28th Feb 2024, 10:02 AM
Akolade Mariam
Akolade Mariam - avatar