Instructions Use the following data to create a dictionary of SEC (Southeastern Conference) football teams and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Instructions Use the following data to create a dictionary of SEC (Southeastern Conference) football teams and mascots and a dictionary of ACC (Atlantic Coast Conference) football teams and mascots. Use the dictionaries to create a python list of conferences. Add the dictionary names (SEC, ACC, etc.) to a python list of conference names. SEC Team Georgia Auburn Mascot Tennessee Mississippi State Florida ACC Team Central Florida Florida State Georgia Tech South Florida Miani Bulldogs Tigers Volunteers Bulldogs Gators Mascot Knights Seminoles Yellow Jackets Bulls Hurricanes • Print the list of conferences using a for loop with implicit key iteration • Next, create a third dictionary of teams and mascots for a different conference (or even a different sport!) which contains at least three entries. (Use something besides the Big 10 conference!) Add the values in your code, don't prompt the user to enter these values. • Add this dictionary to your conference list and add the dictionary name to the list of conference names. • Print the third dictionary, using a for loop with implicit key iteration. • Prompt the user for a dictionary to search. • Prompt the user for a team to find. Use the get() method to retrieve the corresponding mascot, providing a default value if the team is not found. Display the name of the team and the mascot. • Prompt the user for the name of a team to delete from the ACC conference. • In a print statement, use the pop() method to delete the team from the ACC dictionary. • Print the ACC dictionary to show the team and mascot are not in the dictionary anymore. Make sure your output looks like the suggested output! Suggested Output The yellow highlight represents a placeholder for values you add in your code. The red font indicates user input and does not have to match mine. Teams in the SEC dictionary: Georgia's mascot is the Bulldogs Auburn's mascot is the Tigers Tennessee's mascot is the Volunteers Mississippi State's mascot is the Bulldogs Florida's mascot is the Gators Teams in the ACC dictionary: Central Florida's mascot is the Knights Florida State's mascot is the Seminoles Georgia Tech's mascot is the Yellow Jackets South Florida's mascot is the Bulls Miami's mascot is the Hurricanes I added a new dictionary of BIG18 tears and mascots to my list of conferences: Maryland's mascot is the Terrapins Indiana's mascot is the Hoosiers Michigan's mascot is the wolverines Nebraska's mascot is the Cornhuskers Purdue's mascot is the Boilermakers Which dictionary do you want to search? sec What is the name of the tean? teNNessee Tennessee's mascot is the Volunteers Which team in the ACC would you like to remove? MIAMI The Miami Hurricanes have been dropped from the conference. This is the updated ACC dictionary: Central Florida's mascot is the Knights Florida State's mascot is the Seminoles Georgia Tech's mascot is the Yellow Jackets South Florida's mascot is the Bulls Instructions Use the following data to create a dictionary of SEC (Southeastern Conference) football teams and mascots and a dictionary of ACC (Atlantic Coast Conference) football teams and mascots. Use the dictionaries to create a python list of conferences. Add the dictionary names (SEC, ACC, etc.) to a python list of conference names. SEC Team Georgia Auburn Mascot Tennessee Mississippi State Florida ACC Team Central Florida Florida State Georgia Tech South Florida Miani Bulldogs Tigers Volunteers Bulldogs Gators Mascot Knights Seminoles Yellow Jackets Bulls Hurricanes • Print the list of conferences using a for loop with implicit key iteration • Next, create a third dictionary of teams and mascots for a different conference (or even a different sport!) which contains at least three entries. (Use something besides the Big 10 conference!) Add the values in your code, don't prompt the user to enter these values. • Add this dictionary to your conference list and add the dictionary name to the list of conference names. • Print the third dictionary, using a for loop with implicit key iteration. • Prompt the user for a dictionary to search. • Prompt the user for a team to find. Use the get() method to retrieve the corresponding mascot, providing a default value if the team is not found. Display the name of the team and the mascot. • Prompt the user for the name of a team to delete from the ACC conference. • In a print statement, use the pop() method to delete the team from the ACC dictionary. • Print the ACC dictionary to show the team and mascot are not in the dictionary anymore. Make sure your output looks like the suggested output! Suggested Output The yellow highlight represents a placeholder for values you add in your code. The red font indicates user input and does not have to match mine. Teams in the SEC dictionary: Georgia's mascot is the Bulldogs Auburn's mascot is the Tigers Tennessee's mascot is the Volunteers Mississippi State's mascot is the Bulldogs Florida's mascot is the Gators Teams in the ACC dictionary: Central Florida's mascot is the Knights Florida State's mascot is the Seminoles Georgia Tech's mascot is the Yellow Jackets South Florida's mascot is the Bulls Miami's mascot is the Hurricanes I added a new dictionary of BIG18 tears and mascots to my list of conferences: Maryland's mascot is the Terrapins Indiana's mascot is the Hoosiers Michigan's mascot is the wolverines Nebraska's mascot is the Cornhuskers Purdue's mascot is the Boilermakers Which dictionary do you want to search? sec What is the name of the tean? teNNessee Tennessee's mascot is the Volunteers Which team in the ACC would you like to remove? MIAMI The Miami Hurricanes have been dropped from the conference. This is the updated ACC dictionary: Central Florida's mascot is the Knights Florida State's mascot is the Seminoles Georgia Tech's mascot is the Yellow Jackets South Florida's mascot is the Bulls
Expert Answer:
Answer rating: 100% (QA)
To complete the instructions given we need to follow these steps in Python 1 Create dictionaries for the SEC and ACC conferences 2 Create a list of co... View the full answer
Related Book For
Statistics For Business & Economics
ISBN: 9781337901062
14th Edition
Authors: David R. Anderson, Dennis J. Sweeney, Thomas A. Williams, Jeffrey D. Camm, James J. Cochran
Posted Date:
Students also viewed these programming questions
-
Analyze on policy of the Indian government which focuses more on multi-model transportation. Discuss
-
RFP to Determine Consumers' Perceptions of Purchasing Multi-Purpose Cleansing and Facial Device The use of skincare devices is on the rise, although only a few Canadians have enjoyed the experience...
-
Consider the integral 3/2 [ x cos(x) dr. (a) Approximate the integral using the mid-point rule with n = 5. Give your answer to 4 decimal places. (b) Approximate the integral using the trapezoidal...
-
If we take $1 away from a rich person and give it to a poor person, the rich person loses less utility than the poor person gains. Comment.
-
A manometer containing oil (r = 850 kg/m3) is attached to a tank filled with air. If the oil-level difference between the two columns is 60 cm and the atmospheric pressure is 98 kPa, determine the...
-
Naturally occurring nicotine is the (S)-() isomer. Locate the stereogenic center, and draw the three-dimensional structure.
-
The pressure drop needed to force water through a horizontal 1-in.-diameter pipe is \(0.60 \mathrm{psi}\) for every 12 -ft length of pipe. Determine the shear stress on the pipe wall. Determine the...
-
Refer to Sec. 3.4 (subsection entitled "Controlling Air Pollution") for the Nori & Leets Co. problem. After the OR team obtained an optimal solution, we mentioned that the team then conducted...
-
Discuss how men and women differ in their efforts to end their lives. How do marriage, age, and ethnicity influence these differences? 3. Discuss suicide prevention strategies.
-
Presented below is an aging schedule for Bryan Company at December 31, 2021. At December 31, 2021, the unadjusted balance in Allowance for Doubtful Accounts is a credit of $8,000. Instructions a....
-
How does a transactional leader differ from a transformational leader? Choose an individual who you consider to be a transformational leader. Explain why you chose this individual and describe in...
-
What is meant by universal quantifier and existential quantifier? Give an example
-
1. What metrics could be used to assess the operational effectiveness for a given feature according to Kavadias et al.? 2. Propose at least two ideas you believe the organization may use to become...
-
7. Give two real-world examples of a task that can be performed via cloud computing. List three (2) countermeasures that a user can put in place if they cannot connect to Cloud services to perform...
-
7. Answer the following questions about principles of effective communication. Complete the table below by: Listing four principles of effective communication in health and community services Briefly...
-
Subnet 137.181.0.0 into 16 subnets. Show the binary and dotted-decimal forms of each subnet, as well as the subnet mask. for time limitations, just provide the first two subnets and the last two...
-
Find the derivative of the following function: (A) f'(x) = 2x+6+9 (B) f'(x)= x +6 (C) f'(x) = 2x+6 (D) f'(x) = 2x (E) None of the above. f(x)= x + 6x +9
-
For each of the following reactions, express the equilibrium constant: a) H20 (I) H2 (g) + 02 (g) Ke = 1.0x107 b) Fe2 (g) 2F (g) Ke= 4.9 x 10-21 c) C (s) + O2 (g) d) H2 (g) + C2H4 (g) C2H6 (g) Ke =...
-
One indicator of the level of economic hardship is the number of people who bring items to a pawnbroker. Assume that the number of people bringing items to a pawnshop per day in is normally...
-
The following data show the number of Netflix subscribers worldwide for the years 2012 (period 1) to 2017 (period 6) (datawrapper website). The data are in the file NetflixSubscribers. a. Construct a...
-
A factorial experiment was designed to test for any significant differences in the time needed to translate other languages into English with two computerized language translators. Because the type...
-
Suppose a negatively charged ring is placed directly above the positively charged ring in Figure 28.7. If both rings spin in the same direction, is the magnetic interaction between them attractive or...
-
Does the direction of the electric field along the axis inside an electric dipole coincide with the direction of the electric dipole moment?
-
Suppose the square current loop in Figure 28.10 is replaced by a circular loop with a diameter equal to the width of the square loop and with the same current. Does the circular loop experience a...
Study smarter with the SolutionInn App