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
You have declared a variable called var.list which is a list of objects that all have an attribute id. Which options wil
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
You have declared a variable called var.list which is a list of objects that all have an attribute id. Which options wil
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!