zainabbaidul zainabbaidul
  • 24-11-2020
  • Computers and Technology
contestada

What will the output of the following code fragment? fruit=0

Fruits=["Apple","Banana","Grapes","Apple","Apple","Banana","apple"]

for index in Fruits: if index in fruit:

fruit[index]+=1 else:

fruit[index]=1 print(fruit) print("Len of fruit", len(fruit)​

Respuesta :

eshuzia
eshuzia eshuzia
  • 24-11-2020

Answer   4 OPITION

Explanation:

Answer Link

Otras preguntas

The difference of two numbers is 14. Their sum is 46. What are the two numbers?
A  5 gallon mixture contains 40% acid. A 3 gallon mixture contains 50% acid. What percent is obtained by putting the two mixtures together?
The difference of two numbers is 14. Their sum is 46. What are the two numbers?
What are prashastis?
How can you do this question about standard form?
if measure of the angle fhg is 61 degrees, what is measure of angle fpg (on a circle)
how much interest will be paid in 2 years for a loan of $1500 at 8.25% simple interest ?
Solve with completing the square method:6x²-7x+2=0 and  ax²+bx+c=0
To decorate a cake, you make a shade of purple icing using 2 drops of red food coloring for every 3 drops of blue. For 12 drops of red food coloring, how many d
You heat a piece of iron from 200 to 400 K What happens to the atom's energy of random motion