Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
print("**************************************************************") | ||
print(" Python Program to show countries with respect to continents ") | ||
print("**************************************************************") | ||
africa = ["Nigeria", "South Africa", "Sudan"] | ||
asia = ["Pakistan", "India", "Sri Lanka", "Bangladesh"] | ||
antarctica = ["Norway", "Chile", "Argentina", "Chilli"] | ||
europe = ["Russia", "UK", "Germany", "France","Italy"] | ||
South_America = ["USA", "Canada", "Mexico", "Cuba"] | ||
North_America = ["Brazil", "Colombia", "Uruguay", "Paraguay"] | ||
australia = ["Australia", "Papua New Guinea", "New Zealand", "Fiji"] | ||
result = input("Please Enter Continent Name:\n") | ||
if result == "asia" or result=="Asia": | ||
print("Here are the countries that are in Asia:\n") | ||
print(asia) | ||
elif result == "africa" or result=="Africa": | ||
print("Here are the countries that are in Africa:\n") | ||
print(africa) | ||
elif result == "antarctica": | ||
print("There are zero countries in Antarctica. There are several territories like \n") | ||
print(antarctica) | ||
elif result == "europe" or result=="Europe": | ||
print("Here are the countries that are in europe") | ||
print(europe) | ||
elif result == "North America" or result=="north america": | ||
print("Here are the countries that are in North America") | ||
print(North_America) | ||
elif result == "South America" or result=="south america": | ||
print("Here are the countries that are in North America") | ||
print(South_America) | ||
elif result == "australia" or result=="Australia": | ||
print("Here are the countries that are in North America") | ||
print(australia) | ||
else: | ||
print("Sorry! So far there is no results are presnet against your input data. I'm continuously improving my database") | ||
print("Good Buy!") |