Coding Task: 06.03 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:


  • 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. The program should loop unless the user types quit.
  • Hint: You’ll have to use label and goto to create the loop. You can name your label whatever you want, but make sure your goto statement is exactly the same!


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): quit
Have a nice day! Don't space out!
Scroll to Top