210k views
5 votes
Which of the following would print out the length of a list called swim_times?

Group of answer choices

print(swim_times)

print(length[swim_times])

print(len(swim_times))

print(len[swim_times])

User Kim Larsen
by
6.9k points

2 Answers

2 votes

Answer:

The correct answer is print(len(swim_times)), as this will print out the length of the list swim_times.

User GordonW
by
7.3k points
4 votes
print(len(swim_times)) would print out the length of a list called swim_times.
User Nikhil K R
by
8.0k points