Summer Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Introduction to lists
Accessing list elements
Unnamed lists
Working with lists
Summary

Instruction

Great! You know that the job_role list contains three elements and that each element has its own name. Those names can also be displayed with the names() function, like this:

names(job_role)

When applied to a list, the names() function returns a vector containing the names of that list's elements. In this case, the names of job_role's elements are job_position, years_of_experience, and skills.

Exercise

Display the names of elements in the candidate list.