It's Autumn! Prices fall like leaves! - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Introduction to lists
6. List length
Accessing list elements
Unnamed lists
Working with lists
Summary

Instruction

Perfect! Creating a list is pretty straightforward.

Our list from the last exercise has three members that we can easily count by hand. But usually, you'll be working with lists that have hundreds or even thousands of elements. Fortunately, you don't have to count their elements by hand; you can use the length() function.

The following line displays the number of elements in the data_scientist_role list (in this case, 3):

length(data_scientist_role)

Exercise

What is the length of the candidate list?