subject

Complete the code. A sample member of the list data is a1 = ['male', True] where the second item is True if the person is on the phone.

for item in data:

if item[0] == 'male':

males = males + 1

if item[ ]:

malesOnPhone = malesOnPhone + 1

ANSWER: 1

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
question
Computers and Technology, 25.06.2019 12:30
What is the purpose of lookup tables in spreadsheet software
Answers: 1
You know the right answer?
Complete the code. A sample member of the list data is a1 = ['male', True] where the second item is...
Questions
question
Biology, 10.12.2020 21:10
question
Mathematics, 10.12.2020 21:10
question
Mathematics, 10.12.2020 21:10
Questions on the website: 13722362