Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

list_comprehenssion

  1. Qubik

    Python Please, help. I need generate dictionary list

    I have 2 lists. For example list_1 = ["a", "b", "c", "d"] list_2 = ["A", "B", "C", "D"] It should turn out: total_list = [{"lower": "a", "upper":"A"}, {"lower": "b", "upper":"B"}, {"lower": "c", "upper":"C"}, {"lower": "d", "upper":"C"}]. I tried like this list_data_dict = [{"lower": a_lower...
Back
Top Bottom