- 1
Can you concatenate with inputs respectively given 'float'?
4 Answers
0
That's exactly what I needed to know re string rules. Thankyou
0
No apparently you cannot. Unnecessary to do it such a way. Thanks anyway.
0
You're within the Python course... I think it is possible.
0
print(input() + str(float(input())))
First input is a string...
Second input, on a new line in SoloLearn input box, is a float, for example 5.7
It must converted first to "float" (because input() returns a string) than to "string", so it can be concatenated to the first string.