s = input("enter a string:") count = 0 for i in s: if '0' <= i <= '9': count = count + 1 print("count is",count)