I have a list containing string elements:
movielst = ['A WALK,DRAGONBALL', 'JAMES BOND,MISSION'] and another list that contains integer values:
userlst = [[1,20],[6,7]] I'm planning to print the output based off both list where the first element in movielst corresponds to the first list in userlst and so on.
Output to get:
Movies: A WALK,DRAGONBALL Users: 1,20 Movies: JAMES BOND,MISSION Users: 6,7 I wrote
for j in range(len(userlst)-1): for i in movielst: print("Movies: " + str(i)) print("Users: " + str(userlst[j])) But I'm getting:
Movies: A WALK,DRAGONBALL Users: 1,20 Movies: JAMES BOND,MISSION Users: 1,20 #should be 6,7 How do i print the output based off both lists in parallel?