[Solved] Determining the First Digit


raw_input returns a string.

Strings are never equal to numbers.

>>> '0' == 0
False

Compare the string with a string. For example, to check whether the string starts with specific character (sub-string), using str.startswith:

if number.startswith('0'):
    ...

solved Determining the First Digit