I have a list of tuples in the variable tups_list, each tuple of which contains 2 strings and a list. I am trying to create a list of Photo instances, where each Photo instance uses the data from each tuple in the tups_list and save that list in a variable photo_insts.
photo_instances = []
tups_list = [("Portrait 2","Gordon Parks",["chicago", "society"]),("Children in School","Dorothea Lange",["children","school","1930s"]),("Airplanes","Margaret Bourke-White",["war","sky","landscape"])]
for i in tups_list:
photo_instances = (i[0],i[1],i[2])
photo_instances.append(photo_instances)
print i
current error: AttributeError: ‘tuple’ object has no attribute ‘append’…I understand the error but I am not sure how to fix it. Any help would be great.