If you use Python3 then input(question)
returns string '1'
, '2'
, etc. You have to convert it into number int(input(question))
.
6
solved Python Type Error Unsupported Operand [duplicate]
If you use Python3 then input(question)
returns string '1'
, '2'
, etc. You have to convert it into number int(input(question))
.
6
solved Python Type Error Unsupported Operand [duplicate]