+ 4
Nigel Belderbos , line 2: number=input("") This takes input from user and assigns it to `number` variable. But the input is of type str (String) and not integer line 5: if number < 5: Here you compare str object `number` with integer 5 . Comparison between string and integer is not valid. So when you take input you need to convert input string to integer ,like this : number=int(input())
19th Feb 2020, 1:36 PM
šŸ‡®šŸ‡³OmkaršŸ•‰
šŸ‡®šŸ‡³OmkaršŸ•‰ - avatar