Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Vacation-chatbot/db-continent.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (35 sloc)
1.39 KB
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
# Python Program to show countries with respect to continents | |
# Defining Continents lists | |
Africa = ["Nigeria", "South Africa", "Sudan","kenya"] | |
# print(africa) | |
Asia = ["Pakistan", "India", "Sri Lanka", "Bangladesh","Nepal"] | |
Antarctica = ["France", "Chile","Newzealand","Norway"] | |
Europe = ["Uk", "Russia", "Spain", "Romania","Italy"] | |
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!") |