Count of 0's - Except Trailing 0's

PYTHON:



po=0

s=int(input())

while s%10==0:

    s//=10

for d in str(s):

    if d=="0":

        po+=1

print(po)

Post a Comment

0 Comments