Exam4Training

Which options will produce a list of the IDs?

You have declared a variable called var.list which is a list of objects that all have an attribute id.

Which options will produce a list of the IDs? (Choose two.)
A . { for o in var.list : o => o.id }
B . var.list[*].id
C . [ var.list[*].id ]
D . [ for o in var.list : o.id ]

Answer: A,B

Latest TA-002-P Dumps Valid Version with 324 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version