List to Dict
I am a software engineer with 4 years of professional experience, currently specializing in full-stack development.
I work a lot with HTML, CSS, JavaScript, and Python and regularly use React, Vue, and Django to build single-page applications and marketing landing pages.
I also work with React Native to build mobile applications with optimized experiences and for businesses who want to ship products in the market quickly.
Currently, I am a part of a team of 8 as a full-stack engineer where I focus on accessibility, component-driven approaches, and building systems that can scale with ease.
Convert lists into dicts using just one line of code.
This trick is useful on a real project with Django and Machine learning for example.
fruits = ["mango", "banana", "apple"]
price = [10, 5, 4]
new_dict = dict(zip(fruits, price))
You can learn more about the zip function here.
Article posted using bloggu.io. Try it for free.




