1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Eva8 [605]
3 years ago
6

Create a function printInfo(some_dict) that given a dictionary whose values are all lists, prints the name of each key along wit

h the size of its list, and then prints the associated values within each key's list.
Computers and Technology
1 answer:
aleksandrvk [35]3 years ago
7 0

Answer:

def printInfo(some_dict):

   print(len(some_dict['locations']), "LOCATIONS")

   for location in some_dict['locations']:

       print(location)

   print()

   print(len(some_dict['instructors']), "INSTRUCTORS")

   for location in some_dict['instructors']:

       print(location)

seattle = {

   'locations': ['San Jose', 'Seattle', 'Dallas', 'Chicago', 'Tulsa', 'DC', 'Burbank'],

   'instructors': ['Michael', 'Amy', 'Eduardo', 'Josh', 'Graham', 'Patrick', 'Minh', 'Devon']

}

printInfo(seattle)

Explanation:

You might be interested in
1. Describe how research and development influence design. Cite specific examples of how research and development influence desi
vladimir1956 [14]

Answer:

so i research and found this,

Development is when findings of a research are utilized for the production of specific products including materials, systems and methods. Design and development of prototypes and processes are also part of this area. Engineering is utilization of these plans and research to produce commercial products.

4 0
2 years ago
Define what is shadow projections?​
marin [14]

Answer:

Shadow Projection

Projection is the externalization, or sending out, of unconscious aspects of yourself. These aspects include positive or negative needs, like the need for love or the need for control; unconscious feelings; and ideas you are not aware of having.

Explanation:

7 0
3 years ago
In older systems, often the user interface mainly consisted of _____ screens that allowed a user to send commands to the system.
marshall27 [118]

Answer:

Option (2) i.e.,  process-control is the correct answer

Explanation:

In the following statement, Process-control screen provides users to send command to the system when the interface of the following users is mainly made up of in the older systems. So, that's why the user interface generally consists of a process-control screen which permits the user to transfer the following details in the system.

7 0
3 years ago
What is HTML?
krok68 [10]

the answer is C. a website.


hope this helps!

6 0
3 years ago
Read 2 more answers
The Payroll Department keeps a list of employee information for each pay period in a text file. The format of each line of the f
user100 [1]

Answer:

import pandas as pd

filename = input("Enter file name with the extension included: ")

data = {}

with open("filename", "r") as file:

   content = file.readlines()

   for line in content:

       line_list = line.strip().split(" ")

       data[line_list[0]] = line_list[1] * line_list[2]

       del line_list

report = pd.DataFrame(list(data.items()), columns = ["lastname", "wages paid"])

print(report)

Explanation:

The python module prompts the user for the file name and opens the text file to extract the employee data with the python open function. It iterates over the file content and saves the last name and the wages paid to the employees ( the hours worked multiplied by the hourly rate) in the dictionary "data".

The dictionary is converted to a dataframe with the Pandas python package and displays the data in tabular format on the screen.

8 0
2 years ago
Other questions:
  • Please help i really need to turn this in already
    6·1 answer
  • Why is a DNS cache poisoning attack dangerous? Check all that apply. A. Errrr...it's not actually dangerous. B. It allows an att
    12·1 answer
  • Electronic components in coputers process data using instructions, which are the steps that tell the computer how to perform a p
    5·1 answer
  • Initialize the tuple team_names with the strings 'Rockets', 'Raptors', 'Warriors', and 'Celtics' (The top-4 2018 NBA teams at th
    9·1 answer
  • A finance company wants to upgrade its accounting software to a higher version. This version change requires a change in data fo
    15·2 answers
  • Which of the following solutions enables simultaneous digital transmission of voice, video, data, and other network services ove
    7·1 answer
  • Write a function swap that swaps the first and last elements of a list argument. Sample output with input: 'all,good,things,must
    10·2 answers
  • Which osi/iso layer is responsible for determining the best route for data to be transferred?
    5·1 answer
  • PLS HELP QUICKLY!!!<br> Thank you
    7·2 answers
  • A developer wants to take existing code written by another person and add some features specific to their needs. Which of the fo
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!