+ 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 Answers
+ 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 =)