Coding Task: 02.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.


Below is a demo of how the program should run:

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:


  • 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!
Scroll to Top