{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"\n",
"
"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(Click **Cell** > **Run All** before proceeding.) "
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [],
"source": [
"#Import modules and packages \n",
"import ipywidgets as widgets\n",
"import random\n",
"from IPython.display import clear_output, display, HTML, SVG\n",
"\n",
"#----------\n",
"\n",
"#import ipywidgets as widgets\n",
"#import random\n",
"\n",
"#This function produces a multiple choice form with four options\n",
"def multiple_choice_4(option_1, option_2, option_3, option_4):\n",
" option_list = [option_1, option_2, option_3, option_4]\n",
" answer = option_list[0]\n",
" letters = [\"(A) \", \"(B) \", \"(C) \", \"(D) \"]\n",
"\n",
" #Randomly shuffle the options\n",
" random.shuffle(option_list)\n",
" \n",
" #Print the letters (A) to (D) in sequence with randomly chosen options\n",
" for i in range(4):\n",
" option_text = option_list.pop()\n",
" option_text_2 = letters[i] + option_text\n",
" option_output = widgets.HTMLMath(value=option_text_2)\n",
" display(option_output)\n",
" \n",
" #Stores the correct answer\n",
" if option_text == answer:\n",
" letter_answer = letters[i]\n",
"\n",
" button1 = widgets.Button(description=\"(A)\"); button2 = widgets.Button(description=\"(B)\")\n",
" button3 = widgets.Button(description=\"(C)\"); button4 = widgets.Button(description=\"(D)\")\n",
" \n",
" button1.style.button_color = 'Whitesmoke'; button2.style.button_color = 'Whitesmoke'\n",
" button3.style.button_color = 'Whitesmoke'; button4.style.button_color = 'Whitesmoke'\n",
" \n",
" container = widgets.HBox(children=[button1,button2,button3,button4])\n",
" display(container)\n",
" print(\" \", end='\\r')\n",
"\n",
" def on_button1_clicked(b):\n",
" if \"(A) \" == letter_answer:\n",
" print(\"Correct! \", end='\\r')\n",
" button1.style.button_color = 'Moccasin'; button2.style.button_color = 'Whitesmoke'\n",
" button3.style.button_color = 'Whitesmoke'; button4.style.button_color = 'Whitesmoke'\n",
" else:\n",
" print(\"Try again.\", end='\\r')\n",
" button1.style.button_color = 'Lightgray'; button2.style.button_color = 'Whitesmoke'\n",
" button3.style.button_color = 'Whitesmoke'; button4.style.button_color = 'Whitesmoke'\n",
"\n",
" def on_button2_clicked(b):\n",
" if \"(B) \" == letter_answer:\n",
" print(\"Correct! \", end='\\r')\n",
" button1.style.button_color = 'Whitesmoke'; button2.style.button_color = 'Moccasin'\n",
" button3.style.button_color = 'Whitesmoke'; button4.style.button_color = 'Whitesmoke'\n",
" else:\n",
" print(\"Try again.\", end='\\r')\n",
" button1.style.button_color = 'Whitesmoke'; button2.style.button_color = 'Lightgray'\n",
" button3.style.button_color = 'Whitesmoke'; button4.style.button_color = 'Whitesmoke'\n",
"\n",
" def on_button3_clicked(b):\n",
" if \"(C) \" == letter_answer:\n",
" print(\"Correct! \", end='\\r')\n",
" button1.style.button_color = 'Whitesmoke'; button2.style.button_color = 'Whitesmoke'\n",
" button3.style.button_color = 'Moccasin'; button4.style.button_color = 'Whitesmoke'\n",
" else:\n",
" print(\"Try again.\", end='\\r')\n",
" button1.style.button_color = 'Whitesmoke'; button2.style.button_color = 'Whitesmoke'\n",
" button3.style.button_color = 'Lightgray'; button4.style.button_color = 'Whitesmoke'\n",
"\n",
" def on_button4_clicked(b):\n",
" if \"(D) \" == letter_answer:\n",
" print(\"Correct! \", end='\\r')\n",
" button1.style.button_color = 'Whitesmoke'; button2.style.button_color = 'Whitesmoke'\n",
" button3.style.button_color = 'Whitesmoke'; button4.style.button_color = 'Moccasin'\n",
" else:\n",
" print(\"Try again.\", end='\\r')\n",
" button1.style.button_color = 'Whitesmoke'; button2.style.button_color = 'Whitesmoke'\n",
" button3.style.button_color = 'Whitesmoke'; button4.style.button_color = 'Lightgray'\n",
"\n",
" button1.on_click(on_button1_clicked); button2.on_click(on_button2_clicked)\n",
" button3.on_click(on_button3_clicked); button4.on_click(on_button4_clicked)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exploring the Solar System\n",
"\n",
"## Introduction\n",
"\n",
"Scientists describe the **Solar System** as the collection of objects orbiting the Sun. The Solar System formed approximately 4.6 billion years ago from the gravitational collapse of a large **molecular cloud**, or **nebula**. This giant cloud, full of gas and dust, formed during an earlier period within the history of the universe. As the nebula contracted under gravity, it began to swirl faster and faster due to the conservation of angular momentum. This resulted in the formation of a **protoplanetary disk**. The majority of the nebula's matter collected at the centre of this disk to form a sphere, known as a **protostar**. The remaining matter continued to spin around the center, clumping together by gravity to form the **planets**. As the pressure and temperature increased at the centre of the protostar, some of the hydrogen began to fuse into helium - a process known as **nuclear fusion**. The energy released from this process initiated a self-sustaining fusion reaction and a new star, the **Sun**, was born. Streams of energized particles flowing outward from the Sun, known as the **solar wind**, blew away much of the remaining gas and dust from the protoplanetary disc into interstellar space. This ended the planetary formation process. This model of the Solar System's formation is known as the **nebular hypothesis**. However, it is important to remember that the scientific study of the Solar System and its formation remain active areas of research with many questions yet to be answered.\n",
"\n",
"
"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a031cc224d044ab786e212f63cde81e5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: Approximately how old is the Solar System?')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "46ebcb01ae804d40acb4045d151d6b7c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) 4.6 million years')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "eba4ce7b458c4a22b14bf66848ea2480",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) 13.8 billion years')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ac71c3cf0daf49f9af4f5766c7c6b2d9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) 4.5 billion years')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3be1a85124b940ca8f0deb5f7b5449e7",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) 4.6 billion years')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7f0098c4820f49a094a49a18469962d9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: Approximately how old is the Solar System?\"))\n",
"\n",
"option_1 = \"4.6 billion years\" \n",
"option_2 = \"4.6 million years\"\n",
"option_3 = \"13.8 billion years\"\n",
"option_4 = \"4.5 billion years\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "cf8fc0fc5005466fab67b4cec6074511",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: What caused the molecular cloud to contract into the protoplanetary disk?<…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0781e5ceb1cc4e21a9a0b1a8e5eb4199",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) Magnetism')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7ef1627b44f34bd79c694a9760aad8d2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) Nuclear fusion')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e3039915c56f4e599fac7682e918a72b",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) Gravity')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3a10dd64ced249f887ea9533b1b3eee6",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) Angular momentum')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f81e181136e048809e87608e054e68a5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: What caused the molecular cloud to contract into the protoplanetary disk?\"))\n",
"\n",
"option_1 = \"Gravity\" \n",
"option_2 = \"Nuclear fusion\"\n",
"option_3 = \"Angular momentum\"\n",
"option_4 = \"Magnetism\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"scrolled": true,
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fef2eb56eb67414abfc605ef071ea4d3",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: Most of the material left behind from the formation of the Sun eventually …"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "98f748a2a75e4310a9f3e11661cc5d3e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) Nebulae')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e2255109bb754c9abeb4bd2776606b81",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) Planets')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "12bdaee9f542446395f68f1988e68d0e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) Solar wind')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "8f451845167d4b8b90fced196d505b3f",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) Stars')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "cbf35b60af90477fa2907aa04c0532da",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: Most of the material left behind from the formation of the Sun eventually became __________?\"))\n",
"\n",
"option_1 = \"Planets\" \n",
"option_2 = \"Nebulae\"\n",
"option_3 = \"Solar wind\"\n",
"option_4 = \"Stars\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Main Features of the Solar System\n",
"\n",
"The main features of the Solar System include the **Sun**, the **planets**, and the **asteroid belt**. There are eight planets within the Solar System. The four closest to the Sun are called the **rocky inner planets**. These are named **Mercury**, **Venus**, **Earth**, and **Mars**. The rocky planets are composed primarily of rock and metal. During the formation of the rocky inner planets, these heavier substances were able to resist the high temperatures experienced close to the Sun. Most of the lighter substances within this region of the protoplanetary disk were vaporized and blown away by the solar wind. Further from the Sun, where the temperatures are much colder, the lighter substances and gases coalesced to form the two **gas giants**, **Jupiter** and **Saturn**. They are named the gas giants because more than 90% of their mass consists of hydrogen and helium. Their composition is therefore similar to that of the Sun, though they are considerably smaller in size. Beyond the gas giants, where the temperatures are even colder, are the two **ice giants**, **Uranus** and **Neptune**. Unlike the gas giants, the ice giants consist of only about 20% hydrogen and helium while the remaining mass is thought to consist of heavier elements, such as oxygen, carbon, nitrogen, and sulfur. The ice giants formed primarily by the gradual accumulation of frozen solids and ice which formed in the cold outermost regions of the protoplanetary disk."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"*Use the interactive widget below to explore some of the main features of the Solar System.*"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "8bb2bebc56654bc49d8d78c1ee215637",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Button(button_style='success', description='Explore!', style=ButtonStyle())"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "05da4236929145dda2915e422f3e06c2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Output()"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import clear_output, SVG\n",
"\n",
"major_objects_output = widgets.Output()\n",
"\n",
"class SolarSystemObject:\n",
" def __init__(self, label, image):\n",
" self.label = label\n",
" self.image = image\n",
" self.html = []\n",
" \n",
" def add_html(self, html):\n",
" self.html.append(html)\n",
"\n",
"\n",
"class SolarSystem:\n",
" def __init__(self):\n",
" self.contents = [None]\n",
" self.current = 0\n",
"\n",
" def add(self, label, image):\n",
" self.last = SolarSystemObject(label, image)\n",
" self.contents.append(self.last)\n",
"\n",
" def increment(self):\n",
" self.current = (self.current + 1) % len(self.contents)\n",
"\n",
" def current_object(self):\n",
" return self.contents[self.current]\n",
"\n",
" def next_object(self):\n",
" return self.contents[(self.current + 1) % len(self.contents)]\n",
"\n",
"solar_system = SolarSystem()\n",
"\n",
"solar_system.add(\"the Sun\", \"solar_system_01_sun.svg\")\n",
"solar_system.last.add_html(\"\"\"Circumference: 109 x Earth
Volume: 1,301,019 x Earth
Mass: 333,060 x Earth
Temperature: 5,500oC
Spectral Type: Yellow dwarf
Age: 4.6 billion years\"\"\")\n",
"solar_system.last.add_html(\"The Sun is the most prominent feature of the Solar System, and it accounts for approximately 99.86% of all its mass. The main components of the Sun are hydrogen and helium, which make up 73% and 25% of the mass, respectively. The remaining 2% consists of heavier elements, such as oxygen, carbon, and iron. The Sun is so large that it could fit over 1 million Earths inside its volume. Within the core, nuclear fusion converts hydrogen into helium. This process releases an enormous amount of energy which radiates from the Sun in the form of heat and light.\")\n",
"\n",
"solar_system.add(\"Mercury\", \"solar_system_02_mercury.svg\")\n",
"solar_system.last.add_html(\"\"\"Circumference: 0.383 x Earth
Volume: 0.056 x Earth
Mass: 0.055 x Earth
Distance from Sun: 0.3871 AU (or 58 million km)
Year: 87.969 days
Day: 1407.5 hours
Temperature: -173/427oC (min/max)
Atmosphere: O2, Na, H2\"\"\")\n",
"solar_system.last.add_html(\"Mercury is the smallest and closest planet to the Sun. It is so small that 18 Mercury-sized planets could fit inside the volume of the Earth. The surface of Mercury is covered in craters due to its thin atmosphere, which provides little protection from meteors. Mercury has the smallest tilt of any planet in the Solar System at just 0.033 degrees. The planet was named after the Roman god often associated with trade and profit. Mercury has no known moons.\")\n",
"\n",
"solar_system.add(\"Venus\", \"solar_system_03_venus.svg\")\n",
"solar_system.last.add_html(\"\"\"Circumference: 0.950 x Earth
Volume: 0.857 x Earth
Mass: 0.815 x Earth
Distance from Sun: 0.723 AU (or 108 million km)
Year: 224.701 days
Day: 5832.4 hours
Temperature: 462oC (mean)
Atmosphere: CO2, N2\"\"\")\n",
"solar_system.last.add_html(\"Venus is the second planet from the Sun and the second brightest object in our night sky. The surface of Venus is extremely hostile due to its thick atmosphere of carbon dioxide. This atmosphere creates a greenhouse effect by trapping heat from the Sun. Consequently, the surface temperature on Venus is 462oC, hot enough to melt lead. Unlike most of the other planets, Venus rotates in the opposite direction about its axis; an observer on Venus would see the Sun rise in the west and set in the east. The only other planet to exhibit this type of rotation is Uranus. The planet was named after the Roman goddess of love and beauty. Venus has no known moons.\")\n",
"\n",
"solar_system.add(\"Earth\", \"solar_system_04_earth.svg\")\n",
"solar_system.last.add_html(\"\"\"Circumference: 40,030 km
Volume: 1.083 x 1012 km3
Mass: 5.972 x 1024 kg
Distance from Sun: 1 AU (or 150 million km)
Year: 365.25 days
Day: 24 hours
Temperature: -89/57oC (min/max)
Atmosphere: N2, O2\"\"\")\n",
"solar_system.last.add_html(\"Earth is the third planet from the Sun, the largest of the inner rocky planets, and the fifth largest planet in the Solar System. It is the only planet in the Solar System known to support life. The main surface feature of the Earth is its oceans, which cover more than 71% of its surface. The age of the Earth has been estimated to be around 4.54 billion years old. It is the only planet not named after a Roman or Greek deity. Instead the name is derived from an English word meaning ground. The Earth has one moon, simply called 'the moon'.\")\n",
" \n",
"solar_system.add(\"Mars\", \"solar_system_05_mars.svg\")\n",
"solar_system.last.add_html(\"\"\"Circumference: 0.532 x Earth
Volume: 0.151 x Earth
Mass: 0.107 x Earth
Distance from Sun: 1.524 AU (or 228 million km)
Year: 686.971 days
Day: 24.6 hours
Temperature: -153/20oC (min/max)
Atmosphere: CO2, N2, Ar\"\"\")\n",
"solar_system.last.add_html(\"Mars is the fourth planet from the Sun. It is considerably colder and drier than Earth, with a thin dusty atmosphere. The surface of Mars is covered in red, rusty soil. Yet despite this hostile description, the planet contains many striking features, such as polar ice caps, canyons, craters, mountains, volcanoes, and deserts. During an earlier and warmer era, the surface of Mars once featured lakes and oceans of liquid water. Mars was named after the Roman god often associated with war. Mars has two moons, Phobos and Deimos.\")\n",
"\n",
"\n",
"solar_system.add(\"the Asteroid Belt\", \"solar_system_06_asteroid_belt.svg\")\n",
"solar_system.last.add_html(\"The Asteroid Belt is a region of space located between the orbits of Mars and Jupiter. It is occupied by millions of oddly-shaped objects called asteroids. The four largest asteroids within the belt are Ceres, Vesta, Pallas, and Hygiea. These four asteroids contain about half of all the mass within the entire Asteroid Belt. In the early history of the Solar System, protoplanets developing within this region would have been greatly affected by the gravity of Jupiter. As Jupiter passed by, it would have pulled on the protoplanets, causing numerous collisions between them, which prevented them from fusing together. What resulted instead of a planet was a belt of asteroids. The orbits of these asteroids are still significantly affected by Jupiter to this day.\")\n",
"\n",
"solar_system.add(\"Jupyter\", \"solar_system_07_jupiter.svg\")\n",
"solar_system.last.add_html(\"Circumference: 10.973 x Earth
Volume: 1,321 x Earth
Mass: 317.8 x Earth
Distance from Sun: 5.203 AU (or 778 million km)
Year: 4,332.59 days
Day: 9.92 hours
Temperature: -145oC (mean)
Atmosphere: H2, He\")\n",
"solar_system.last.add_html(\"Jupiter is the fifth planet from the Sun and the first of the gas giants. It is also the largest planet in the Solar System. The mass of Jupiter is greater than 2.5 times the mass of all the other planets combined. As a gas giant, Jupiter lacks a well-defined solid surface. The atmosphere of Jupiter features many layers of clouds and a Great Red Spot, which is a persistent anticyclonic storm larger in size than the Earth. The planet was named after the king of the Roman gods, who is often associated with the sky and thunder. Jupiter has 79 known moons. The largest include Io, Europa, Ganymede, and Callisto.\")\n",
"\n",
"solar_system.add(\"Saturn\", \"solar_system_08_saturn.svg\")\n",
"solar_system.last.add_html(\"Circumference: 9.140 x Earth
Volume: 763.594 x Earth
Mass: 95.161 x Earth
Distance from Sun: 9.5 AU (or 1,427 million km)
Year: 10,759.22 days
Day: 10.66 hours
Temperature: -178oC (mean)
Atmosphere: H2, He\")\n",
"solar_system.last.add_html(\"Saturn is the sixth planet from the Sun, the second of the gas giants, and the second largest planet in the Solar System. It is the only planet less dense than water. Saturn's most distinguishing feature is its spectacular ring system, which is composed primarily of ice and rock. These rings extend over 282,000 km from the planet and are thought to be fragments of comets, asteroids, or moons that were broken up by Saturn's powerful gravitational field. The planet was named after the Roman god who fathered Jupiter. Saturn has 53 official moons, with an additional 9 known moons awaiting confirmation. The largest include Titan, Rhea, and Iapetus.\")\n",
" \n",
"solar_system.add(\"Uranus\", \"solar_system_09_uranus.svg\")\n",
"solar_system.last.add_html(\"Circumference: 3.981 x Earth
Volume: 63.085 x Earth
Mass: 14.536 x Earth
Distance from Sun: 19.2 AU (or 2,871 million km)
Year: 30,687.15 days
Day: 17.23 hours
Temperature: -216oC (mean)
Atmosphere: H2, He, CH4\")\n",
"solar_system.last.add_html(\"Uranus is the seventh planet from the Sun and the first of the ice giants. It is the only planet known to rotate on its side with an axial tilt of 97.77 degrees. This peculiar axis of rotation may have resulted from a collision with another planet-sized object in Uranus' early history. Like Venus, Uranus also features a retrograde rotation about its axis. More than 80% of its mass consists of icy materials (primarily water, methane, and ammonia). Uranus features a system of rings, though they are considerably fainter than those of Saturn. The planet was named after the Greek god of the Sky. It is the only planet named after a god of Greek mythology. Uranus has 27 known moons. The largest include Miranda, Ariel, Umbriel, Titania, and Oberon.\")\n",
"\n",
"solar_system.add(\"Neptune\", \"solar_system_10_neptune.svg\")\n",
"solar_system.last.add_html(\"Circumference: 3.865 x Earth
Volume: 57.723 x Earth
Mass: 17.148 x Earth
Distance from Sun: 30.1 AU (or 4,498 million km)
Year: 60,190.03 days
Day: 16.11 hours
Temperature: -201oC (mean)
Atmosphere: H2, He, CH4\")\n",
"solar_system.last.add_html(\"Neptune is the eighth planet from the Sun, the second of the ice giants, and the most distant planet in the Solar System. It is also the windiest planet in the solar system, with clouds moving across the atmosphere at speeds exceeding 2,100 km/h. Neptune was named after the Roman god of the sea. Neptune has 6 faint rings and 13 moons. The largest of these moons is Triton, which comprises more than 99.5% of the mass orbiting Neptune.\")\n",
"\n",
"solar_system.add(\"the Kuiper Belt\", \"solar_system_11_kuiper_belt.svg\")\n",
"solar_system.last.add_html(\"The Kuiper Belt is a region of space located beyond the orbit of Neptune. Like the Asteroid Belt, the Kuiper Belt is occupied by millions of small bodies that formed during the early stages of the Solar System. However, unlike the Asteroid Belt, the majority of these small bodies are composed of icy materials instead of rock. The most notable objects in the Kuiper Belt include the dwarf planets Pluto, Eris, Haumea, and Makemake. The objects within the Kuiper Belt are strongly influenced by Neptune's gravity, and vice versa. One of Neptune's moons, Triton, may have originated from the Kuiper Belt.\")\n",
"\n",
"\n",
"\n",
"#Toggle images\n",
"def show_major_objects():\n",
" current_object = solar_system.current_object()\n",
" if current_object:\n",
" display(SVG(\"Images/%s\" % current_object.image))\n",
" display(*[widgets.HTMLMath(value=html) for html in current_object.html])\n",
" else:\n",
" display(SVG(\"Images/solar_system_00_blank.svg\"))\n",
" next_object = solar_system.next_object()\n",
" if next_object:\n",
" display(widgets.HTMLMath(value=\"Press the 'Explore!' button again to learn more about %s.\" % next_object.label))\n",
" \n",
"explore_major_objects_button = widgets.Button(description=\"Explore!\", button_style = 'success')\n",
"display(explore_major_objects_button)\n",
"\n",
"def major_objects_clicked(button):\n",
" solar_system.increment()\n",
" with major_objects_output:\n",
" clear_output(wait=True)\n",
" show_major_objects()\n",
"\n",
"explore_major_objects_button.on_click(major_objects_clicked)\n",
"display(major_objects_output)\n",
"with major_objects_output:\n",
" show_major_objects()\n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "8f78c56bb759439ab4a33955d4570a6f",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: Which four planets make up the inner rocky planets?')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fed8915ad46f4a6199f5a15ca2ae6e45",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) Mercury, Venus, Earth, Mars')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7d01c351a4e9447db21bb113f18c5e50",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) Mercury, Venus, Earth, Neptune')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c7de4d01e5ba42629879678683a743a4",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) Jupiter, Saturn, Uranus, Neptune')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "58428f4e3a374ffdbe907630bf6a27dd",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) Venus, Earth, Mars, Jupiter')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "20f082f7f7474929bb0f1669e043fd6d",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: Which four planets make up the inner rocky planets?\"))\n",
"\n",
"option_1 = \"Mercury, Venus, Earth, Mars\" \n",
"option_2 = \"Mercury, Venus, Earth, Neptune\"\n",
"option_3 = \"Jupiter, Saturn, Uranus, Neptune\"\n",
"option_4 = \"Venus, Earth, Mars, Jupiter\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a70fd61e5b08455ea0f03d55edc90c76",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: Which two planets are called the gas giants?')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "96eddd11aeb24145b1ae3a7b99f22cad",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) Jupiter, Saturn')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "beaa041b2dd54d1093945bf76aa466a1",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) Saturn, Venus')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "826be788e4a64a95814eb1f469345170",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) Jupiter, Venus')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3475a396da1f4668a1e6365b1c295c46",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) Mars, Jupiter')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f85138624d904480901022a361d9d93e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: Which two planets are called the gas giants?\"))\n",
"\n",
"option_1 = \"Jupiter, Saturn\" \n",
"option_2 = \"Jupiter, Venus\"\n",
"option_3 = \"Saturn, Venus\"\n",
"option_4 = \"Mars, Jupiter\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fc7810909c214d69a8882108aa070c86",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: Which two planets are called the ice giants?')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "02cb5c32ba01422e9345020d87e013a3",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) Uranus, Neptune')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ab0cca1de6644a27b47c8f3df1ab5833",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) Saturn, Neptune')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "79ba3c112c9f40edaba55949dc8df4e9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) Jupiter, Saturn')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7b5a06a953e542a58424ca5fb1b8b639",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) Saturn, Uranus')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "807f5434ca954659bd8fc8ed05f20ce2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: Which two planets are called the ice giants?\"))\n",
"\n",
"option_1 = \"Uranus, Neptune\" \n",
"option_2 = \"Jupiter, Saturn\"\n",
"option_3 = \"Saturn, Uranus\"\n",
"option_4 = \"Saturn, Neptune\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e645e40db5ca4d5e8d03708a06dc29f7",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: Which is the largest planet in the Solar System?')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d725c274553a4edeb41285c3ed3def8c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) Saturn')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b6eccf2a138b47a18d3339ba93b33b98",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) Earth')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3bc13bf20414460b8156aa567b82f117",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) Uranus')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c82a8c3555404537a9fb0b68a8a5a7fa",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) Jupiter')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9fe83a64a13c41ada795cc01b40ef10c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: Which is the largest planet in the Solar System?\"))\n",
"\n",
"option_1 = \"Jupiter\" \n",
"option_2 = \"Saturn\"\n",
"option_3 = \"Earth\"\n",
"option_4 = \"Uranus\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a522847868a34a939692e13cc58b6913",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: Which is the smallest planet in the Solar System?')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "293039a4d8814210a75f3ddf310691b9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) Mars')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "58d171f0ab5848799bbcb96a10f97584",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) Neptune')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0fa6f94cdcea4b8495fffbbf36f4d18d",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) Mercury')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9b4ccaad626145fbb10062da983d0675",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) Venus')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a1e0d417bf444f97ad861d84529af5fa",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: Which is the smallest planet in the Solar System?\"))\n",
"\n",
"option_1 = \"Mercury\" \n",
"option_2 = \"Mars\"\n",
"option_3 = \"Venus\"\n",
"option_4 = \"Neptune\"\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Lesser Features of the Solar System\n",
"\n",
"**Dwarf planets**: A dwarf planet is similar to a regular planet in that it has a spherical shape and directly orbits a star. However unlike planets, dwarf planets share their orbital zone with other bodies of significant size. For example, **Ceres** is located within the asteroid belt and thus shares its orbital zone with many asteroids. **Pluto**, **Eris**, **Haumea**, and **Makemake** are dwarf planets located in the **Kuiper belt**, a region of space located beyond Neptune that contains many small bodies, all remnants from the Solar System's formation.\n",
"\n",
"**Asteroids**: Asteroids are small oddly-shaped objects scattered throughout the solar system. The vast majority of asteroids are located in the Asteroid Belt between Mars and Jupiter. There are two additional groups of asteroids, known as the **Trojan asteroids**, that are co-orbital with Jupiter. Asteroids are composed primarily of nickel, iron, titanium, and water.\n",
"\n",
"**Meteoroids**: A meteoroid is a space rock, typically less than 1 m wide. Most meteoroids are fragments from comets or asteroids, while others originate from the debris ejected from impacts. When a meteor impacts Earth, the recoverable fragments are called **meteorites**. It is estimated that 25 million meteoroids enter the Earth's atmosphere each day, though most are below 1 mm in size. While most of these impacts go unnoticed, meteors on the scale of tens of centimeters to several meters can be observed as **shooting stars** at night.\n",
"\n",
"**Comets**: A comet is a small, icy object that usually follows an elliptical orbit around the Sun. As it passes close to the Sun, it warms and releases gases that streak behind it like a tail. It is this feature that distinguishes a comet from an asteroid. Most comets are believed to originate from either the Kuiper belt, or the **Oort cloud**, a spherical cloud of icy objects surrounding our solar system. The Oort cloud extends well-beyond Neptune and into interstellar space.\n",
"\n",
"## Measuring Distances in the Solar System\n",
"\n",
"One common unit used to measure distances in the Solar System is the **astronomical unit (AU)**. One AU equals the average distance between the Sun and the Earth, or about 150 million km. \n",
"\n",
"Below is a table showing the average distances of each planet from the Sun in units of AU and km. Note the convenience of using AU when comparing distances between planets. \n",
"\n",
"Planet | Distance in astronomical units (AU) | Distance in kilometers (km) \n",
"--- | --- | ---\n",
"Mercury | 0.39 | 58,065,000 \n",
"Venus | 0.72 | 108,450,000 \n",
"Earth | 1.00 | 150,000,000 \n",
"Mars | 1.52 | 228,600,000 \n",
"Jupiter | 5.20 | 780,450,000 \n",
"Saturn | 9.50 | 1,425,000,000 \n",
"Uranus | 19.20 | 2,880,000,000 \n",
"Neptune | 30.10 | 4,515,000,000 "
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "8b2bf84322c947599201a154c1570282",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: If we assume that the orbits of the planets are essentially circles, what …"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ddba8acad0cb4cc6bcb15f1eed23dd47",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) 0.61 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7de4c04acd4e4d96804cd5981232e2df",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) 8.50 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0f3906469ca342df9f4f7bab0b8ed48c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) 4.20 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4762f3ee26bf4d33aacc31cc6a6bf133",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) 29.10 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "34f27a95b106452c888e3533ff505851",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"#import random\n",
"\n",
"random_number_1 = random.randint(0,6)\n",
"planets = [\"Mercury\", \"Venus\", \"Mars\", \"Jupiter\", \"Saturn\", \"Uranus\", \"Neptune\"]\n",
"answers = [\"0.61 AU\", \"0.28 AU\", \"0.52 AU\", \"4.20 AU\", \"8.50 AU\", \"18.20 AU\", \"29.10 AU\"]\n",
"planet = planets[random_number_1]\n",
"answer = answers[random_number_1]\n",
"\n",
"#Create three choices that are unique (and not equal to the answer) \n",
"choice_list = random.sample(answers,3)\n",
"while choice_list.count(answer) >= 1:\n",
" choice_list = random.sample(answers,3)\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: If we assume that the orbits of the planets are essentially circles, what is the closest distance possible between Earth and \" + planet + \" (in units of AU)?\"))\n",
"\n",
"option_1 = answer \n",
"option_2 = choice_list[0]\n",
"option_3 = choice_list[1]\n",
"option_4 = choice_list[2]\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "182e504926a849148811c0f5401084ed",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: If we assume that the orbits of the planets are essentially circles, what …"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0854d2c08e434ddbaaa86699fe18c991",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) 42 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a82cda5762444cf0879c894d0546d996",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) 92 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d625d12dc45347eebd04f469acb74964",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) 1,275 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "aafe4c129bdb458fb372ae98d090051c",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) 4,365 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9db26fad07784e18a36c412d40df8c3a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"#import random\n",
"\n",
"random_number_2 = random.randint(0,6)\n",
"planets = [\"Mercury\", \"Venus\", \"Mars\", \"Jupiter\", \"Saturn\", \"Uranus\", \"Neptune\"]\n",
"answers = [\"92 million km\", \"42 million km\", \"79 million km\", \"630 million km\", \"1,275 million km\", \"2,730 million km\", \"4,365 million km\"]\n",
"planet = planets[random_number_2]\n",
"answer = answers[random_number_2]\n",
"\n",
"#Create three choices that are unique (and not equal to the answer) \n",
"choice_list = random.sample(answers,3)\n",
"while choice_list.count(answer) >= 1:\n",
" choice_list = random.sample(answers,3)\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: If we assume that the orbits of the planets are essentially circles, what is the closest distance possible between Earth and \" + planet + \" (in units of km)?\"))\n",
"\n",
"option_1 = answer \n",
"option_2 = choice_list[0]\n",
"option_3 = choice_list[1]\n",
"option_4 = choice_list[2]\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bf2b8c5dcb8742f9bc7fe21c1a4670c0",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: If we assume that the orbits of the planets are essentially circles, what …"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "86d14e56abba4d06960225f8fbf1c842",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) 10.50 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a902e9bea9fb41e1beba35d828c14be5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) 6.20 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3c0a7bb4ffa94330aaec26765a431dc9",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) 31.10 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "99e847d30dd0499d8f846e3b646769f2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) 1.72 AU')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c444e303a95e4fe785d75f6616a73f81",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"#import random\n",
"\n",
"random_number_3 = random.randint(0,6)\n",
"planets = [\"Mercury\", \"Venus\", \"Mars\", \"Jupiter\", \"Saturn\", \"Uranus\", \"Neptune\"]\n",
"answers = [\"1.39 AU\", \"1.72 AU\", \"2.52 AU\", \"6.20 AU\", \"10.50 AU\", \"20.20 AU\", \"31.10 AU\"]\n",
"planet = planets[random_number_3]\n",
"answer = answers[random_number_3]\n",
"\n",
"#Create three choices that are unique (and not equal to the answer) \n",
"choice_list = random.sample(answers,3)\n",
"while choice_list.count(answer) >= 1:\n",
" choice_list = random.sample(answers,3)\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: If we assume that the orbits of the planets are essentially circles, what is the farthest distance possible between Earth and \" + planet + \" (in units of AU)?\"))\n",
"\n",
"option_1 = answer \n",
"option_2 = choice_list[0]\n",
"option_3 = choice_list[1]\n",
"option_4 = choice_list[2]\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9e03ad138b6544e3affc41d6307f34c8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='Question: If we assume that the orbits of the planets are essentially circles, what …"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1624a67444c54b2c8a1cbf5f3bed5230",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(A) 208 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2946c24a529440188000f154e01ec3d5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(B) 379 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fab87c4a3e2f43a0aeb7c17a88dedd7a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(C) 1,575 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "5b19e27ef7b44242ab656b68659d163b",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HTMLMath(value='(D) 930 million km')"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "6bc2ed146975415bbdeda43e3b7f02c2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(Button(description='(A)', style=ButtonStyle(button_color='Whitesmoke')), Button(description='(B…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \r"
]
}
],
"source": [
"#import ipywidgets as widgets\n",
"#from IPython.display import display, HTML\n",
"#import random\n",
"\n",
"random_number_4 = random.randint(0,6)\n",
"planets = [\"Mercury\", \"Venus\", \"Mars\", \"Jupiter\", \"Saturn\", \"Uranus\", \"Neptune\"]\n",
"answers = [\"208 million km\", \"258 million km\", \"379 million km\", \"930 million km\", \"1,575 million km\", \"3,030 million km\", \"4,665 million km\"]\n",
"planet = planets[random_number_4]\n",
"answer = answers[random_number_4]\n",
"\n",
"#Create three choices that are unique (and not equal to the answer) \n",
"choice_list = random.sample(answers,3)\n",
"while choice_list.count(answer) >= 1:\n",
" choice_list = random.sample(answers,3)\n",
"\n",
"display(widgets.HTMLMath(value=\"Question: If we assume that the orbits of the planets are essentially circles, what is the farthest distance possible between Earth and \" + planet + \" (in units of km)?\"))\n",
"\n",
"option_1 = answer \n",
"option_2 = choice_list[0]\n",
"option_3 = choice_list[1]\n",
"option_4 = choice_list[2]\n",
"\n",
"multiple_choice_4(option_1, option_2, option_3, option_4)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Conclusion\n",
"\n",
"* The **Solar System** is a term used to describe the collection of objects orbiting the Sun.\n",
"* The Solar System formed approximately 4.6 billion years ago.\n",
"* The Sun makes up about 99.86% of all the mass in the Solar System. It consists predominately of hydrogen and helium.\n",
"* The four rocky inner planets are called **Mercury**, **Venus**, **Earth**, and **Mars**.\n",
"* The two gas giants are called **Jupiter** and **Saturn**.\n",
"* The two ice giants are called **Uranus** and **Neptune**.\n",
"* Other important objects in the Solar System include **dwarf planets**, **asteroids**, **meteoroids**, and **comets**.\n",
"* **Astronomical units (AU)** are commonly used to measure distances in the Solar System.\n",
"\n",
"Images in this notebook represent original artwork."
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"\n"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%html\n",
"\n",
"\n",
""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[](https://github.com/callysto/curriculum-notebooks/blob/master/LICENSE.md)"
]
}
],
"metadata": {
"celltoolbar": "Edit Metadata",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}