input() function will return a string which you have entered. So even if you enter number 5, it will be stored as a string variable, not an int. That is why in this line:
if 0 <= num < 100:you compare integers to a string (num). For this code to work, you need to first convert the number from string to integer type:
num = int(input("Enter a number: "))