QUESTION IMAGE
Question
question # 6
dropdown
complete the code.
a sample member of the list data is a1 = male, true, which indicates a male was on the phone.
for item in data:
if item ∘ == male:
males = males + 1
if item1:
Step1: Analyze list structure
Each element in data is a list with two elements like `['male', True]. We want to check the first - element for 'male'.
Step2: Determine index
In Python, list indices start from 0. So to access the first element of each sub - list in data, we use index 0.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
0