>>> float(input("Enter a number: ")) + float(input("Enter another number: ")) Enter a number: 40 Enter another number: 2 42. | Sololearn: Learn to code for FREE!

+1

>>> float(input("Enter a number: ")) + float(input("Enter another number: ")) Enter a number: 40 Enter another number: 2 42.

What is wrong With this ...

5/13/2020 2:15:26 PM

Raj Singhal

14 Answers

New Answer

+5

Raj Singhal >>> float(input("Enter a number"))+float(input("Enter another Number")) 40 2 42.0 your code will be like this ☝️☝️☝️ This code is executed in Python shell and its working fine. I think you have run this code in scriptive mode that's why it's giving you error hope it helped

+2

Not exact executing on your compiler

+1

Raj Singhal It will be your IDE problem, run it on code playground of Sololearn

+1

Raj Singhal Send me the codes here which have you used

0

It's not running..

0

Syntax error is coming bro....

0

It ask for first value Then error appears on screen

0

Raj Singhal The second value will be given in second line Input like this 👇👇👇 42 2

0

https://www.sololearn.com/learn/Python/2492/

0

I can't understand this properly bro ..😞

0

Raj Singhal What have you not understood ?

0

Why the code is not running

0

But now I get it..💯

0

Raj Singhal 👍👍👍