This seems quite simple but I can't get it to work. I'm using Python 3.
I have a nested for loop
for x in list:
ch_id_dic[i]='channel_id'
ch_id_dic2= dict((v,k) for k,v in ch_id_dic.items())
for y in list_2:
ch_id_dic[j]='description'
ch_id_dic2= dict((v,k) for k,v in ch_id_dic.items())
break
After the break statment it goes through the second element of list but then in the nested for loop it goes to the first element again. I want it to go to the second.
Can someone please help me?
Thanks...