-3

I have this code here is the code and what should be the output

Can anyone help me how I can solve this code with a for loop?

Thank you in advance!

II30
  • 1

1 Answers1

0

You can do so by extracting the names field for each user.

user_names = [dict["names"] for dict in users]
DaveIdito
  • 1,546
  • 14
  • 31