subject

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)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
You know the right answer?
What will the output of the following code fragment? fruit=0 Fruits=["Apple","Banana","Grapes"," A...
Questions
question
Mathematics, 23.02.2021 03:30
question
Mathematics, 23.02.2021 03:30
question
Mathematics, 23.02.2021 03:30