Skip to content

Commit

Permalink
Add Frida Kahlo Retrospective Off-Platform Project
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelHolst committed Jul 8, 2024
1 parent 9adcba6 commit 871f76a
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 297 deletions.
147 changes: 98 additions & 49 deletions fridakahlo/.ipynb_checkpoints/frida_project-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# Frida Kahlo Exhibition\n",
"\n",
"You've been hired to work on a retrospective of Frida Kahlo's work at a major museum. You're job is to put together the audio tour, but in order to do that you need to create a list of each painting featured in the exhibit, the date it was painted, and its spot in the tour. \n",
"You've been hired to work on a retrospective of Frida Kahlo's work at a major museum. Your job is to put together the audio tour, but in order to do that you need to create a list of each painting featured in the exhibit, the date it was painted, and its spot in the tour. \n",
"\n",
"Use your knowledge of Python lists to create a master list of each painting, its date, and its audio tour ID. \n"
]
Expand All @@ -23,12 +23,12 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": []
"source": [
"paintings = ['The Two Fridas', 'My Dress Hangs Here', 'Tree of Hope', 'Self Portrait With Monkeys']\n"
]
},
{
"cell_type": "markdown",
Expand All @@ -42,12 +42,12 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": []
"source": [
"dates = [1939, 1933, 1946, 1940]\n"
]
},
{
"cell_type": "markdown",
Expand All @@ -60,12 +60,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[('The Two Fridas', 1939), ('My Dress Hangs Here', 1933), ('Tree of Hope', 1946), ('Self Portrait With Monkeys', 1940)]\n"
]
}
],
"source": [
"paintings = list(zip(paintings, dates))\n",
"print(paintings)\n"
]
},
{
"cell_type": "markdown",
Expand All @@ -82,12 +91,24 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[('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)]\n"
]
}
],
"source": [
"paintings.append(('The Broken Column', 1944))\n",
"paintings.append(('The Wounded Deer', 1946))\n",
"paintings.append(('Me and My Doll', 1937))\n",
"\n",
"print(paintings)\n"
]
},
{
"cell_type": "markdown",
Expand All @@ -102,12 +123,23 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"7"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(paintings)\n"
]
},
{
"cell_type": "markdown",
Expand All @@ -120,12 +152,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[1, 2, 3, 4, 5, 6, 7]\n"
]
}
],
"source": [
"audio_tour_number = list(range(1, 8))\n",
"print(audio_tour_number)"
]
},
{
"cell_type": "markdown",
Expand All @@ -141,12 +182,12 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": []
"source": [
"master_list = list(zip(audio_tour_number, paintings))"
]
},
{
"cell_type": "markdown",
Expand All @@ -158,17 +199,25 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
"execution_count": 11,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[(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))]\n"
]
}
],
"source": [
"print(master_list)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -182,9 +231,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.9.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
Loading

0 comments on commit 871f76a

Please sign in to comment.