Source Code:
(back to article)
my_list = [1, 2, 3, 4] num_elements = len(my_list) print(num_elements) # Output: 4
Result:
Report an issue