# This program lets the user enter a number between 0 and 999 and it says
#  how many digits that number has.

def main():
    num = input("Enter a nubmer between 0 and 999 ")
    if num < 10:
        print "%d has 1 digit" % num
    elif num < 100:
        print "%d has 2 digits" % num
    else:
        print "%d has 3 digits" % num

main()
