taget_num = "1000000007" count = 0 user_num = input("plase enter your number") if (len(taget_num) > len(user_num)): count = (len(taget_num) - len(user_num)) else: count = len(user_num)-len(taget_num) print (count)