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
algol [13]
3 years ago
15

Given an array of users, write a function, namesAndRoles that returns all of user's names and roles in a string with each value

labeled.For example: const users = [ { name: 'Homer', role: 'Clerk', dob: '12/02/1988', admin: false },{ name: 'Lisa', role: 'Staff', dob: '01/30/1965', admin: false },{ name: 'Marge', role: 'Associate', dob: '09/10/1980', admin: true } ] namesAndRoles(users) // Name: Homer // Role: Clerk // Name: Lisa // Role: Staff // Name: Marge // Role: Associatefunction namesAndRoles(users) { return users } namesAndRoles(users)
Computers and Technology
1 answer:
LenaWriter [7]3 years ago
3 0

Answer:

def namesAndRoles(users):

   for user in users:

       return f"{user[name]}, {user[role]}"

Explanation:

The python program gets the list of dictionaries of the users in a company and returns the user names and their roles. The code is defined as a function and is executed when the function is called.

You might be interested in
The (blank) option will help determine the overall look of her presentation.
Valentin [98]

The slide layout option will help determine the overall look of her presentation.

<h3>Which option in a presentation program is vital?</h3>

Slide layouts is known to be a function that is made of  all the tools in regards to formatting, positioning, and others used in a slide and it is one that have all of the content that is seen on a slide.

Hence, The slide layout option will help determine the overall look of her presentation.

Learn more about presentation from

brainly.com/question/2189162

#SPJ1

7 0
2 years ago
Where are options to add a border around the outside of a chart found?
enyata [817]

Answer:

Format tab in the Shape Styles group

Explanation:

The border can be added around the chart which could be of various types including dashed, dotted or plane line.

The border can be added around the chart by moving the cursor over the shape styles section of the ribbon. This gives instant border around the chart and for customization, you can click the format tab below chart tools tab. Now click the Shape outline button. We can also select the style and size of the border.

Thus, the selected option is the correct answer.

8 0
4 years ago
Read 2 more answers
Consider the following business environment.
ale4655 [162]

Answer:

Check the explanation

Explanation:

C-> OLAP systems allow users to analyze database information from multiple database systems at one time. The primary objective is data analysis and not data processing.

D-.Airlines use the Data Mining Techniques to improve Customer Service.

Kindly check the attached image below to see the step by step explanation to the question above.

7 0
3 years ago
Which mechanical switches are the loudest and clickiest?
telo118 [61]

Answer:

1.Cherry MX Blue

2.most expensive is Gateron Blue

3 0
3 years ago
1. Which mechanical part or feature listed in the section on Critical Vehicle Systems do you think is most important?
kaheart [24]
I think it would be seatbelt but is it a multiple choice if so what's the choices
3 0
4 years ago
Read 2 more answers
Other questions:
  • Which two things will you see when you collapse the view of the subdocument in a master document? (Microsoft Word)
    8·2 answers
  • Which step of the machine cycle examines the op-code of the next instruction to be executed?
    12·2 answers
  • A video-streaming Web site uses 32-bit integers to count the number of times each video has been played. In anticipation of some
    11·1 answer
  • What skills and characteristics do you think would be necessary for a lighting board operator to be successful?
    8·2 answers
  • Needed urgently what are short cut keys
    8·2 answers
  • Of the key reasons for creating organizational units which of the following is not one of them?
    13·1 answer
  • Which of the following is false? A. The last element of an array has position number one less than the array size. B. The positi
    9·1 answer
  • Which of the following are true if you pay only the minimun amount each month towards your credit card bill? You will be charged
    11·1 answer
  • _________________ component defines the correct granularity for access controls and oversees the relationships between identitie
    13·1 answer
  • What does it mean to influence the government? Use influence in a sentence.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!