subject

You are comparing the portion of female drivers on the phone to the portion of male drivers on the phone. You created a two-dimensional array using lists. There are 100 observations in your study. The following is an abbreviated version of the list data. data = [ ['male', True], ['female',True], ['male',False] ]
As an example, ['male', True] represents a male who is on the phone. ['female', False] represents a female who is not on the phone.

What is the missing line of code?

males = 0
malesOnPhone = 0
females = 0
femalesOnPhone = 0
for item in data:
if item[0] == 'male':
males = males + 1
:
malesOnPhone = malesOnPhone + 1
else:
females = females + 1
if item[1]:
femalesOnPhone = femalesOnPhone + 1

if item[0] == 'male'

if item[1] == 'male'

if item[1]

if item[0]

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 24.06.2019 14:30
When workers demonstrate patience, are able to manage there emotions, and get along with other employees, which skills are being displayed?
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
Pressing the backspace key deletes the text to the of the insertion point. the left or the right?
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What are the benefits to using presentations to organize and deliver information in the workplace? they add visual appeal. they are easy to update. they ensure accuracy. they can be created quickly. the work can't be lost.
Answers: 1
You know the right answer?
You are comparing the portion of female drivers on the phone to the portion of male drivers on the p...
Questions
question
Mathematics, 05.07.2019 00:30
question
Mathematics, 05.07.2019 00:30
Questions on the website: 13722360