Skip to content

Commit 21ae029

Browse files
authored
added project planet
show short information about a planet.
1 parent 27dfb8c commit 21ae029

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

P/Planet Info/planet.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
planet = {
2+
'mercury' : " Mercury is the closest planet to the Sun and is known for its extreme temperature variations. It has a thin atmosphere and a heavily cratered surface.",
3+
'Venus' :"Venus is often called Earth's sister planet because of its similar size and composition. However, it has a thick, toxic atmosphere that traps heat, making it the hottest planet in our solar system.",
4+
'earth' : "Earth is the only known planet to support life. It has a diverse ecosystem, with a range of climates and environments, including oceans, mountains, and deserts.",
5+
'mars' : "Often called the Red Planet due to its reddish appearance, Mars has a thin atmosphere and is the focus of human exploration for its potential to host future colonies.",
6+
'jupiter' : "Jupiter is the largest planet in the solar system, with a strong magnetic field and a turbulent atmosphere filled with swirling clouds, including the famous Great Red Spot.",
7+
'saturn' : "Saturn is known for its stunning ring system, composed of icy particles. It's a gas giant with a complex system of moons.",
8+
'uranus' : " Uranus is a gas giant with a unique feature—it rotates on its side. It has a blue-green appearance and a system of rings.",
9+
'Neptune' : "Neptune is the farthest planet from the Sun and is known for its deep blue color. It has powerful storms, including the Great Dark Spot, and a family of moons."
10+
}
11+
name = input("Name of the planet: ").lower()
12+
if name in planet:
13+
print(planet[name])
14+
else:
15+
print("Invalid Planet name.")

0 commit comments

Comments
 (0)