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 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
question
Computers and Technology, 23.06.2019 21:40
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
question
Computers and Technology, 24.06.2019 09:50
Create a string list. 2. use console.readline() to collect values of firstname, lastname, street, city, state, zip, save them to list. 3. write a simple linq statement, call method uppercasewords() to change first letter to uppercase. 4. create a foreach statment to display the information. public static string uppercasewords(string value) { char[] array = value.tochararray(); if (array.length > = 1) { if (char.islower(array[0])) { array[0] = char.toupper(array[0]); } } for (int i = 1; i < array.length; i++) { if (array[i - 1] == ' ') { if (char.islower(array[i])) { array[i] = char.toupper(array[i]); } } } return new string(array);
Answers: 3
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
Mathematics, 03.02.2021 15:50
question
Mathematics, 03.02.2021 15:50
question
Mathematics, 03.02.2021 16:00
question
Mathematics, 03.02.2021 16:00
question
Mathematics, 03.02.2021 16:00
question
Mathematics, 03.02.2021 16:00
question
Arts, 03.02.2021 16:00
question
Social Studies, 03.02.2021 16:00
Questions on the website: 13722367