May-20-2018, 08:51 AM
Are you still printing it like this:
See my previous post how to do it. Get the index of the input country if it is the same as one of the 'countries' list and print the capital with the same index.
print ("The capital of {0} is{1}".format(country,capital))
?See my previous post how to do it. Get the index of the input country if it is the same as one of the 'countries' list and print the capital with the same index.