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
Leokris [45]
3 years ago
14

The email_list function receives a dictionary, which contains domain names as keys, and a list of users as values. Fill in the b

lanks to generate a list that contains complete email addresses .
The code :

def email_list(domains):
emails = []
for ___:
for user in users:
emails.___
return(emails)

print(email_list({"yahoo.com": ["clark.kent", "diana.prince", "peter.parker"], "yahoo.com": ["barbara.gordon", "jean.grey"], "hotmail.com": ["bruce.wayne"]}))
Computers and Technology
1 answer:
zysi [14]3 years ago
3 0

Answer:

Following are the solution to this question:

Please find the attachment of this code.

Explanation:

In this code, an email_list method is declared, that accepts a domains parameter, and in the next step, an empty list and two for loop are defined, in which the first for loop is used for a count parameter value and in the second loop is use the append method to add the given value, and use the return method to print its value, and use the print method to call the "email_list" method.  

You might be interested in
In tableData the column variable of the first column should be RowerNames, the second RowingEvent, the third RowerWeight and the
maxonik [38]

Answer:

Required MatLab code is given below:

Explanation:

function tableData=CreateTable(Names, Event, Weight)

% Matlab function to create a table from the given input arrays

% Inputs:

% Names will be n x 1 string array,

% Event will be n x 1 string array,

% Weight will be n x 1 double column array.

% Outputs:

% tableData : where column variables are : RowerNames, RowingEvent,

% RowerWeight and WeightCategories

WeightCategories = ""; % create an empty WeightCategories array

% loop over the Weight column array, populate the WeightCategories

% based on Weight

for i=1:length(Weight)

if(Weight(i) >= 100 && Weight(i) < 150)

WeightCategories(i) = "light weight";

elseif(Weight(i) >= 150 && Weight(i) < 200)

WeightCategories(i) = "medium weight";

else

WeightCategories(i) = "heavy weight";

end

end

% create the table with arrays Names, Events, Weight and

% WeightCategories by taking transpose of WeightCategories as WeightCategories is a row array

tableData = table(Names,Event,Weight,WeightCategories','VariableNames',{'RowerNames','RowingEvent','RowerWeight','WeightCategories'});

end

%end of function

8 0
4 years ago
Images that are made up of pixels and cannot be resized without losing quality?
Inessa05 [86]

Answer:

there are no known pictures that can be zoomed in and not lose quality. they will all be pixelized. mostly everything on a computer is made of pixels.

Explanation:

hope this helps!

~evita

8 0
3 years ago
6. Assume there are three small caches, each consisting of four one-word blocks. One cache is fully associative, a second is two
AURORKA [14]

Answer:

Explanation:

jk...v bbbb n jk

5 0
3 years ago
Suppose company A wants to develop a program that duplicates the functionality of a programm by company B. Describe how company
kompoz [17]
The design of the software is covered by copy right unless it is open sourced or is a very common interface. They would need to come up with their own design and way of solving the problem to have a solution that was not copyrighted.
5 0
4 years ago
………………….... controls the operations like reading data from input devices, transmitting information to output devices and checkin
katrin [286]

Explanation:

hi the IP address of my colleague of mine that

6 0
3 years ago
Other questions:
  • What is the most common way for computing systems and devices to authenticate a person’s identity? citi
    10·1 answer
  • Ruby is creating a presentation. She wants each slide displayed at intervals of five seconds. Which feature in the presentation
    6·2 answers
  • Which color reflects more light red blue black or white
    6·1 answer
  • What is the name of the symbol that is used to classify and categorize information?​
    10·2 answers
  • What is a complex instruction set computer chip? Multiple Choice Performs all arithmetic operations (for example, addition and s
    6·1 answer
  • Which formulas would work to combine cells with first, middle, and last names from columns A through C and row 2 into a new cell
    14·2 answers
  • What are cell phones used for?
    8·2 answers
  • What is the purpose of exploring data?
    6·2 answers
  • An e-commerce client is moving from on-premise, legacy systems to a cloud-based platform. During the transition, the client is a
    15·1 answer
  • How does the technology affect you daily living? Give situations where you use technology and how it helped you.​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!