How __getitem__ & __setitem__ works in python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How __getitem__ & __setitem__ works in python ?

Please help me to understand__getitem__ & __setitem__ in python, how it works, where it use?

13th May 2021, 3:19 AM
Prabhjeet
Prabhjeet - avatar
1 Answer
0
You can see their application on lists here: https://code.sololearn.com/cX46gl7g9yxD/?ref=app
13th May 2021, 10:57 AM
Endalk
Endalk - avatar