What is the next line? >>> tupleB = (5, 7, 5, 10, 2, 7) >>> tupleB.count(7) 1 0 5 2
1 answer:
Answer:
The right answer is option 4: 2
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
You might be interested in
Answer: yeah i mean i use my canon camera
Explanation:
The answer is commas. <span>When listing columns in the select list, commas should be used to separate the columns.</span>
Answer:
A, Computer Engineering
slide transition adds a page turn effect
I believe it is 200 per revolution!