Coding Task: 03.02 Your Solar System

The Solar System refers to our neighbourhood of space; the planetary system formed by the Sun, the Earth and all the other planets you’re probably familiar with. There are 8 planets, 4 dwarf planets and over 200 moons in the Solar System, as well as many other celestial objects.

Your Task

In the editor below, write a program that asks the user to type in the name of their favourite planet (all lowercase) and then, depending on what they typed, display at least one the following facts:

You can research your own facts on the official NASA website if you want!

Python Reference Sheet

Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:

Requirements

  • The program should run without any errors.
  • The program should ask the user to enter a planet or other celestial body in our Solar System. If the user types a planet the program recognises, it should print out a relevant fact about that planet, either from the table above or from your own research.
  • If the program doesn’t recognise the planet name, it should display I don't know that planet... it must be out of this world!

Example

Below is an example of how the program should run:

Please type in your favourite planet(all lowercase): mercury
Mercury is the closest planet to the Sun! Did you know that a year on Mercury is just 88 days long?
Please type in your favourite planet(all lowercase): venus
Venus is the second planet from the Sun! Did you know that Venus is the third brightest natural object in the sky after the Sun and the Moon?
Please type in your favourite planet(all lowercase): tatooine
I don't know that planet... it must be out of this world!
Scroll to Top