Почему я получаю эту ошибку: я создаю калькулятор ИМТ:
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Фрагмент кода:
Height = input("Enter Height in meter")
Weight = input("Enter Weight in Kg")
Result = int(weight) / int(height ** 2)
Print(result)
Подробнее здесь: https://stackoverflow.com/questions/678 ... ow-str-and
Мобильная версия