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
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!")