Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
# 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!")