Code Review Request: Frida Kahlo Project

Hey all! I am in Birmingham working my way through the data analyst career path (about 25% done with the whole path). Just finished up the Frida Kahlo cummulative project and have been prompted to ask for code review! Here’s my code. Tia! (Let’s see if I actually know how to post my code here lol)

[codebyte language=python] # Create a list of all of the paintings paintings = ['The Two Fridas', 'My Dress Hangs Here', 'Tree of Hope', 'Self Portrait With Monkeys'] #Create a second list called dates and give it the values of the year each painting was completed dates = [1939, 1933, 1946, 1940] # Zip the two lists together and display the result to check paintings = list(zip(paintings, dates)) print(paintings) # Append the missing paintings to the end of paintings and save the result, printing to check it worked paintings.append(['The Broken Column', 1944]) paintings.append(['The Wounded Deer', 1946]) paintings.append(['Me and My Doll', 1937]) print(paintings) # Find the length of the list of paintings to determine the audio tour numbers len(paintings) # Save the audio tour numbers as a lift of numbers in range 1-7 based on the 7 paintings available. Print the result to check. audio_tour_number = list(range(1,8)) print(audio_tour_number) #Save this and the paintings list into one big master list for the audio tour master_list = list(zip(audio_tour_number, paintings)) print(master_list) [/codebyte]

Hey there! I hope you are having a great journey! I am also learning Python but in the path for ML. The Frida Kahlo Project is in the syllabus and I have just finished it. I thought I’d be a good samaritan and help someone with ideas about their code, so here I am! :sweat_smile:

Just to mention that when I ran it, it threw me an error:
File “main.py”, line 1
[codebyte language=python]
^
SyntaxError: invalid syntax
Which comes from the first line and in the 27th which shouldn’t be there (I am pretty sure it was a copy - paste mistake).

Aside from that, you did a great job! I hope you keep enjoying the course! :+1: