The number of letters should be counted, and compared with the entered number, more or less, what number do not enter, the number of letters will always be greater.

a = len((input("Ввод: "))) b = input('Введите значение: ') c = len((input("Ввод: "))) if b == ("=="): print (a == c) elif b == (">"): print(a > c) 

    1 answer 1

     a = len(input("Ввод: ")) b = input('Введите значение: ') c = int(input("Ввод: ")) if b == "==": print (a == c) elif b == ">": print(a > c) 

    When you write len you are given the number of elements in the variable (string). To compare the number of characters with the int(input()) number, use int(input())

    Check