Dictionaries (Theory of Python) (Python Tutorial)

preview_player
Показать описание
Dictionaries are the hash table object in Python, and are tremendously useful.

Thank you!
Рекомендации по теме
Комментарии
Автор

I’m not sure if I have the correct name for this. Can you do a video on all the “Magic Methods” in python?

As far as I know there are 2 categories of these.
1) The methods that’s are intrinsic to the file like __name__ and __file__
2) methods you can use to overload syntax in python when you define your own class like __len__ and __getitem___

erickeilty
Автор

Hi does a dictionary gets passed to a function? If i pass a dictionary to a function and modify it, will the original dictionary get modified as well? Also how does assignment operator work on dictioanries? does it make a new copy or both dictionaries just point to the same object?

nischalsehrawat
welcome to shbcf.ru