Computer Science, asked by vasugoel2772, 4 months ago

SCAM WILL BE REPORTED

WAP in python enter 10 numbers in a tuple from keyboard, then display occurrence or counting of each number in that tuple.​

Answers

Answered by Anonymous
4

Program:

nums= input("Input some comma separated numbers : ")

list = nums.split(",")

tup = tuple(list)

x=int(len(tup))

i=0

#worked hard to get this code

#sorry for this much delay

#program by ankitraj707

def Count(tup, en):

   return tup.count(en)

 

while i < x:

   z=list[i]

   print (z,'has occured',Count(tup,z),'times')

   i += 1

     

Answered by dipalic820
0

Answer:

this is the correct answer

Explanation:

mark as brainliest

Attachments:
Similar questions