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
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
0
Answer:
this is the correct answer
Explanation:
mark as brainliest
Attachments:
Similar questions
English,
2 months ago
Physics,
2 months ago
Social Sciences,
4 months ago
Math,
4 months ago
English,
11 months ago