+ 2
Getting the TypeError: bad operand type for unary +: ‘str’
Here is the code: height = input(“How tall are you? “) print( + height + “ is a perfectly good height to be! I am 6 feet tall!!”)
4 Respuestas
+ 2
There is an extra '+' inside the print function. The correct code should be like the following code snippet
height = input("How tall are you? " )
print( height + " is a perfectly good height to be! I am 6 feet tall!!")
And there was some weird symbol used in place of ". Maybe it's because you copy-pasted this from some where else.
+ 1
Oooooo!! Thank you!!!
+ 1
That did work thank you!!!
+ 1
Caitlin Cook Happy to help =)