Hello, I was wondering if anybody would be willing to look at my code for the Frida Kahlo Project. Let me what works and what would could be done better.
Thanks,
Nathaniel Bowes
Blockquote# coding: utf-8
In[1]:
paintings = [‘The Two Fridas’, ‘My Dress Hangs Here’, ‘Tree of Hope’, ‘Self Portrait With Monkeys’]
In[2]:
dates = [1939, 1933, 1946, 1940]
In[3]:
paintings = list(zip(paintings, dates))
In[4]:
print(paintings)
[(‘The Two Fridas’, 1939), (‘My Dress Hangs Here’, 1933), (‘Tree of Hope’, 1946), (‘Self Portrait With Monkeys’, 1940)]
In[5]:
paintings.append((‘The Broken Column’, 1944))
In[6]:
paintings.append((‘The Wounded Deer’, 1946))
In[7]:
paintings.append((‘Me and My Doll’, 1937))
In[8]:
print(paintings)
[(‘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)]
In[9]:
print(len(paintings))
7
In[11]:
audio_tour_number = list(range(1,8))
In[12]:
master_list = list(zip(audio_tour_number, paintings))
In[13]:
print(master_list)
[(1, (‘The Two Fridas’, 1939)), (2, (‘My Dress Hangs Here’, 1933)), (3, (‘Tree of Hope’, 1946)), (4, (‘Self Portrait With Monkeys’, 1940)), (5, (‘The Broken Column’, 1944)), (6, (‘The Wounded Deer’, 1946)), (7, (‘Me and My Doll’, 1937))]