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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, zaratayyibah
Which of the choices sean are not true when considering virus behavior
Answers: 1
image
Computers and Technology, 22.06.2019 16:00, raizagisselle1273
If a client wants to make minor edits, what should he/she use?
Answers: 3
image
Computers and Technology, 22.06.2019 17:00, ruddymorales1123
What allows you to create a wireless connection among your smart devices
Answers: 2
image
Computers and Technology, 22.06.2019 18:10, AdoNice
How can i delete permalinks from a word press site?
Answers: 1
You know the right answer?
What will the output of the following code fragment? fruit=0 Fruits=["Apple","Banana","Grapes"," A...

Questions in other subjects:

Konu
Mathematics, 07.10.2020 05:01
Konu
Mathematics, 07.10.2020 05:01
Konu
Mathematics, 07.10.2020 05:01