54.9k views
5 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’]

User Hammerite
by
3.8k points

1 Answer

1 vote

Answer: 5

Step-by-step explanation:

print means that it outputs something

len(supplies) means it gets the length of the supplies list
if you count how many are in the list you get 5

User YBathia
by
5.2k points