The problem is that "number" is a string. The input function returns a raw string of the user input. Python cannot compare strings and numbers (e.g. "5" != 5). To correct this, you can change line 12:
number = int(input(' Enter line # : '))