Let's say I have 2 lists and a variable:
Name = "Siler City"
List1 = ["Frank", "Beth", "Jose" "Pieter"]
List2 = ["Red", "Green", "Blue", "Purple"]
This is a simple illustration of a complex problem and there is a reason I don't want to create a dictionary. These must be 2 separate list. What I want is to iterate through List1[0] and List2[0], etc... at the same time. So my desired results would be
"The Red house is owned by Frank", "The Green house is owned by Beth", "The Blue house is owned by Jose,"
etc...Why won't the below work and what is a better strategy?
for item in List1:
if Name == "Siler City":
for color in List2:
print("The {} house is owned by {}".format(color, item))