python 2.7 - How to build a map from two lists using zip? -


ये मेरी सूची है:

projects = ["A", "B", "सी"]

घंटे = [1,2,3]

मुझे मेरा अंतिम उत्तर होना चाहिए: {ए: 1, बी: 2, सी: 3}

क्या कोई सुझाव है?

कोड टुकड़ा कोड (ज़िप) (प्रोजेक्ट्स, घंटो) ट्यूपल्स (कुंजी, मान) की एक सूची तैयार करेगा, जिसका उपयोग मैप फ़ीड करने के लिए किया जाएगा (आमतौर पर अजगर में शब्दकोश कहा जाता है) निर्माता: Dict

Comments

Popular posts from this blog

sql - Return Function using Cursor -

c++ - why does this code produce a runtime error? -

javascript - Is there any way to add a new parameter to a function programmatically? -