Complete the code to create a named list with elements 'a' and 'b'.
my_list <- list([1] = 1, b = 2)
The name of the first element in the list should be 'a'.
Complete the code to access the element named 'score' from the list.
value <- my_list$[1]Use the $ operator with the element name 'score' to access it.
Fix the error in naming the list element correctly.
my_list <- list([1] = 10, b = 20)
The element name must be a valid name like 'score', not a value like 10.
Fill both blanks to create a named list with elements 'name' and 'age'.
person <- list([1] = "Alice", [2] = 30)
The list should have elements named 'name' and 'age' with corresponding values.
Fill all three blanks to create a named list with elements 'x', 'y', and 'z'.
coords <- list([1] = 10, [2] = 20, [3] = 30)
The list elements should be named 'x', 'y', and 'z' with their respective values.
