3 ms·
ruby >> +"2" => "2" >> "2" + 1 TypeError (no implicit conversion of Integer into String) python >>> +"2" TypeError: bad operand type
by sergeykish 6y ago
ruby
>> +"2"
=> "2"
>> "2" + 1
TypeError (no implicit conversion of Integer into String)
python
>>> +"2"
TypeError: bad operand type for unary +: 'str'
>>> "2" + 1
TypeError: can only concatenate str (not "int") to str
lua
> +"2"
stdin:1: unexpected symbol near '+'
> "2" + 1
3.0