How to create a dictionary in Python

preview_player
Показать описание


Code from video:
*****************
{'one': 1}
dict(one=1)
dict(1='one')

Connect with us!
*****************
Рекомендации по теме
Комментарии
Автор

Well explanation ✌👌👀
Legends are watching before 1 day of exam😀😁😄😆❣

_UP-Yadav
Автор

I want to create a current working directory data structure like this:
dir={ "subdirs" : [] , "files" : [] }
that keeps track of the files and subdirectories in any directory.
I cannot figure out how to address the inner lists, or add to them.
For example, how would I add the dot directory to itself to the subdirs list? "."

Then, how would I address that item?

justgivemethetruth
visit shbcf.ru