Implement the following: Given:  courses = ['tech-100', 'mt-900', 'ee-101', 'arch-111'] avgs = [86.75, 73.64, 96.87, 85.21] 1) Create a dictionary, courseAvgs by using the two given lists above. 2) Use a loop to print all keys and values in the dictionary courseAvgs. 3) Print the dictionary courseAvgs. Example Output TECH-100: 86.75 | MT-900: 73.64 | EE-101: 96.87 | ARCH-111: 85.21 |  {'tech-100': 86.75, 'mt-900': 73.64, 'ee-101': 96.87, 'arch-111': 85.21}

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 18SA
icon
Related questions
icon
Concept explainers
Question

need help with python....paste indented code here

Question 1

Implement the following:

Given: 
courses = ['tech-100', 'mt-900', 'ee-101', 'arch-111']
avgs = [86.75, 73.64, 96.87, 85.21]

1) Create a dictionary, courseAvgs by using the two given lists above.
2) Use a loop to print all keys and values in the dictionary courseAvgs.
3) Print the dictionary courseAvgs.

Example Output
TECH-100: 86.75 | MT-900: 73.64 | EE-101: 96.87 | ARCH-111: 85.21 | 

{'tech-100': 86.75, 'mt-900': 73.64, 'ee-101': 96.87, 'arch-111': 85.21}

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Linked List
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning