occurrence 2 as a gidit

 x=0

for i in range(23):

    x+=str(i).count('2')

print(x)

Comments

Popular posts from this blog

Minimum indexed character

Right most non zero digit

Count the Reversals