How can ı do this code= print(float(input("Enter a number:") + (float(input("Enter another number:") | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can ı do this code= print(float(input("Enter a number:") + (float(input("Enter another number:")

Help

30th Mar 2019, 2:57 AM
Melisa Yılmaz
Melisa Yılmaz - avatar
6 Answers
+ 4
Yes 'cause you're missing parentheses. print(float(input('num1: '))+float(input('num2: ')))
30th Mar 2019, 3:14 AM
Шащи Ранжан
Шащи Ранжан - avatar
+ 4
It should work the way you've written( guess, you've missed few parentheses). Where's the problem?
30th Mar 2019, 3:08 AM
Шащи Ранжан
Шащи Ранжан - avatar
30th Mar 2019, 5:08 AM
Шащи Ранжан
Шащи Ранжан - avatar
0
when ı run this code , it getting an error
30th Mar 2019, 3:11 AM
Melisa Yılmaz
Melisa Yılmaz - avatar
0
And then ı i'm gonna do this Enter a number: 8 Enter another number: 5 is that correct?
30th Mar 2019, 3:20 AM
Melisa Yılmaz
Melisa Yılmaz - avatar
0
I'm having the same problem
30th Mar 2019, 11:53 AM
"Michael + O'fade"
"Michael + O'fade" - avatar