32.7k views
19 votes
What is the next line? >>> tupleB = (5, 7, 5, 10, 2, 7) >>> tupleB.count(7) 1 0 5 2

User Edrian
by
4.8k points

2 Answers

5 votes

Answer:

The answer is 2!!!!

Step-by-step explanation:

Good luck!

User Sheri Trager
by
5.9k points
12 votes

Answer:

The right answer is option 4: 2

Step-by-step explanation:

Lists are used in Python to store elements of same or different data types.

Different functions are used in Python on List. One of them is count.

Count is used to count how many times a specific value occurs in a list.

The syntax for count is:

listname.count(value)

In the given code,

The output will be 2

Hence,

The right answer is option 4: 2

User TJ Seabrooks
by
5.9k points