What are the differences between Python Dictionaries vs Javascript Objects?
问题 I'm new to python and I was reading about Dictionaries. And from my previous experience with langages like javascript they seemed like objects to me. Dictionaries can store lists and share many similaraties to objects in javascript. ex python code: menu = {} menu['Chicken Alfredo'] = 14.50 menu['Italian Pasta'] = 15.89 menu['Shrimp Soup'] = 12.43 menu['Persian Rice'] = 21.99 ex javascript code: var menu = new Object(); menu['Chicken Alfredo'] = 14.50; menu['Italian Pasta'] = 15.89; menu[