Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In python 3. The FIFA World Cup is soccer's most famous competition. National teams originate in one of six confederations from around the world, depending
In python 3.
The FIFA World Cup is soccer's most famous competition. National teams originate in one of six confederations from around the world, depending on their geographic location. These are CAF, CONCACAF, CONMEBOL, OFC, AFC, and UEFA (see https://www.fifa.com/associations/ - you will find a list of countries and their confederations at the link).
Create a dictionary with at least ten national teams that identifies their confederation. Make sure to include at least one entry for each of the six confederations.
Prompt the user to ask whether they would like to search a country or a confederation. If the user wishes to search a country, the program should return that country's confederation. If the user wishes to search a confederation, the program should return ALL countries in that confederation (all that are in your dictionary, anyway
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started