Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #1 from rehmanm13/patch-1
Create db-continent.py
- Loading branch information
Showing
1 changed file
with
37 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,37 @@ | ||
# Python Program to show countries with respect to continents | ||
# Defining Continents lists | ||
|
||
Africa = ["Nigeria", "South Africa", "Sudan"] | ||
# print(africa) | ||
Asia = ["Pakistan", "India", "Sri Lanka", "Bangladesh"] | ||
Antarctica = ["France", "Chilli"] | ||
Europe = ["UK", "Russia", "UK", "Romania"] | ||
North_America = ["United States", "Canada", "Mexico", "Costa Rica"] | ||
South_America = ["Argentina", "Chilli", "Colombia", "Brazil"] | ||
Australia = ["Papua New Guinea", "Australia ", "Australia"] | ||
|
||
result = input("Please Enter Continent Name:") | ||
if result == "asia": | ||
print("Here are the countries that are in Asia") | ||
print(asia) | ||
elif result == "africa": | ||
print("Here are the countries that are in Africa") | ||
print(africa) | ||
elif result == "antarctica": | ||
print("Here are the countries that are in antarctica") | ||
print(antarctica) | ||
elif result == "europe": | ||
print("Here are the countries that are in europe") | ||
print(europe) | ||
elif result == "North America": | ||
print("Here are the countries that are in North America") | ||
print(North_America) | ||
elif result == "South America": | ||
print("Here are the countries that are in South America") | ||
print(South_America) | ||
elif result == "australia": | ||
print("Here are the countries that are in australia") | ||
print(australia) | ||
else: | ||
print("Sorry! So far there is no results are presnet against your input data") | ||
print("Good Buy!") |