Solar system

Report a typo

Create a file planets.txt and write the names of the Solar system planets there, each on a new line. In total, the file should contain 8 lines with the following planets: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune.

When opening the file, specify encoding='utf-8'.

Write a program in Python 3
# create the planets.txt
___

Create a free account to access the full topic