I want to merged a list together with another list with the same length. My first list contains names for movie + actor names. The other list contains ratings based on the movie.
example from list with names + actors:
'The Godfather (1972), Marlon Brando, Al Pacino, James Caan'\n",
'The Godfather: Part II (1974), Al Pacino, Robert De Niro, Robert Duvall',\n",
'The Dark Knight (2008), Christian Bale, Heath Ledger, Aaron Eckhart',\n",
'Pulp Fiction (1994), John Travolta, Uma Thurman, Samuel L. Jackson',\n",
example from list with ratings:
'9.0',
'8.9',
'8.9',
'8.9',
I want to merged these two list together to one big list with
Names, actors, ratings.
The result should look like this:
'The Godfather (1972), Marlon Brando, Al Pacino, James Caan, 9.0'\n",
'The Godfather: Part II (1974), Al Pacino, Robert De Niro, Robert Duvall, 8.9',\n",
'The Dark Knight (2008), Christian Bale, Heath Ledger, Aaron Eckhart, 8.9',\n",
'Pulp Fiction (1994), John Travolta, Uma Thurman, Samuel L. Jackson, 8.9',\n",
tried this so far, but it did not help me alot.
from pprint import pprint
Name_Actor_List = []
Final_List = []
for i in lines:
Name_Actor_List.append(i)
Final_List = Machine_List + ratings