Frida Kahlo Retrospective Code Review

Hello Everyone,

I am 33% threw the BI Data Intelligence career path. I have completed the Frida Kahlo off platform project. I am hoping to find a partner to review my code, and I am happy to review yours.

I would appreciate feedback on the following code:
#Creating two list first paintings then the dates they were made
paintings = [‘The Two Fridas’, ‘My Dress Hangs Here’, ‘Tree of Hope’, ‘Self Portrait With Monkeys’]
dates = [1939, 1933, 1946, 1940]

zip together both the paintings and their dates

paintings_and_dates = list(zip(paintings, dates))
#print new zipped 2d list


append zipped(paintings_and_dates) to contain last minute additions

new_painting1 = [“The Broken Column”, 1944]
new_painting2 = [“The Wounded Deer”, 1946]
new_painting3 = [“Me and My Doll”, 1937]


find out the length of zipped foler


create identification numbers using range method

audio_tour_number = list(range(1,8))

#combine paintings and tour number to create master list
master_list = list(zip(audio_tour_number, paintings_and_dates))

happy coding!

I think some code is missing (output of the various print())

To add the new paintings, it’s easier to do this and add each item as they’ve requested (rather than create separate variables for each):

paintings.append(('The Broken Column', 1944))
paintings.append(('The Wounded Deer', 1946))
paintings.append(('Me and My Doll', 1937))


>>>[('The Two Fridas', 1939), ('My Dress Hangs Here', 1933), ('Tree of Hope', 1946), ('Self Portrait With Monkeys', 1940), ('The Broken Column', 1944), ('The Wounded Deer', 1946), ('Me and My Doll', 1937)]

Python Docs, list methods:

1 Like

thank you very much! I see how that can be much simpler!

1 Like