I have 4 lists:
list1 = ["in", "france", "germany"]
list2 = ["NAMASTE", "VANAKAM"]
list3 = ["fr1", "fr2", "fr3"]
list4 = ["gem1", "gem2", "gem3", "gem4"]
I want the output as:
[{'in': ["NAMASTE", "VANAKAM"], 'france': ["fr1", "fr2", "fr3"], 'germany': ["gem1", "gem2", "gem3", "gem4"]}]
Can't figure out the way to do this.
All that I'm able to try is:
Lang = {}
counter = 1
for i in list1:
counter += 1
Lang[i] = f'list{counter}'
a = []
a.append(Lang)
print(a)
But I'm getting:
[{'in': 'list2', 'france': 'list3', 'germany': 'list4'}]
How can I convert string with same variable name to that variable here so that I get the value of that variable?
Or any other ways to achieve the desired output?