22.6k views
4 votes
What does the program print out as a result of the given snippet of code?

supplies = ["pencil", "notebook", "backpack", "calculator", "pen"]
print(len(supplies))

A. 5
B. 8
C. [‘backpack’, ‘calculator’, ‘notebook’, ‘pen’, ‘pencil’]
D.[‘pencil’, ‘notebook’, ‘backpack’, ‘calculator’, ‘pen’]

2 Answers

3 votes

Answer: 5

Step-by-step explanation:

well the function len gives the length of the list

so the length of supplies is

5

User Majid Ali Khan
by
4.8k points
5 votes

Answer:

A. 5

Step-by-step explanation:

The len( ) function gives you the length of the array, in this case, 5 elements are present.

User Frederik Hoeft
by
5.4k points