+ 1

basic concept -type conversion

print( float(input("Enter a number: ")) + float(input("Enter another number: "))) ^ ^ this code is not working

29th Jul 2018, 11:41 AM
AMAN
2 Answers
+ 1
try jest like this a=(float(input("enter first number"))) b=(float(input("enter second number"))) print( a + b )
29th Jul 2018, 12:09 PM
estifanos
estifanos - avatar
0
It is. Just that you only get input once in this code playground. Enter multiple inputs into multiple lines.
29th Jul 2018, 11:43 AM
Paul Grasser
Paul Grasser - avatar