Answer to Question #283735 in Python for Venu

Question #283735

Most frequentl digit in python

1
Expert's answer
2021-12-30T07:13:46-0500
s = input()
ans = [0, 0]
ss =set(s)


for i in ss:
    if ans[0] < s.count(i):
        ans[0] = s.count(i)
        ans[1] = i

print(ans[1])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS