Page 1 of 1

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

Posted: Mon Aug 01, 2022 9:51 am
by answerhappygod
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 Most Voted
C. [ var.list[*].id ]
D. [ for o in var.list : o.id ] Most Voted