+ 1

Could someone find the error in this? It would be really appreciated. It shows syntax error at the assignment operator

num1 =float(input('Enter number 1')) num2 =float(input('Enter number 2'))

21st Sep 2017, 10:30 AM
Xavier Siji Paul
Xavier Siji Paul - avatar
13 Respostas
+ 3
https://code.sololearn.com/cQpX4i13iQ67/#py Here a simple calculator. You can do like this with function or only with while as you see in tutorial
21st Sep 2017, 2:34 PM
Ferhat Sevim
Ferhat Sevim - avatar
+ 5
It seems fine to me
21st Sep 2017, 10:32 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 5
I think it has to do with you needing 2 inputs instead of 1
21st Sep 2017, 10:33 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 5
how can I build a calculator for Python
22nd Sep 2017, 6:54 PM
Musosa Amos
Musosa Amos - avatar
+ 4
What you have to do. Enter number 1 ENTER Enter number 2 So here, input can be: 3.15 4.51
21st Sep 2017, 10:34 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 4
number1 = float(input('Enter number1')) number2 = float(input('Enter number2')) print(number1," ", number2) Try like this
21st Sep 2017, 10:44 AM
Ferhat Sevim
Ferhat Sevim - avatar
+ 3
how can I build a calculator for Python
22nd Sep 2017, 6:53 PM
Musosa Amos
Musosa Amos - avatar
+ 2
What do you want to do? Post your code here so everybody see it
21st Sep 2017, 1:19 PM
Ferhat Sevim
Ferhat Sevim - avatar
+ 2
Thanks bro
21st Sep 2017, 2:36 PM
Xavier Siji Paul
Xavier Siji Paul - avatar
+ 1
Thanks bro
21st Sep 2017, 10:37 AM
Xavier Siji Paul
Xavier Siji Paul - avatar
+ 1
Didn't work
21st Sep 2017, 10:39 AM
Xavier Siji Paul
Xavier Siji Paul - avatar
+ 1
Didn't work either bro
21st Sep 2017, 12:34 PM
Xavier Siji Paul
Xavier Siji Paul - avatar
+ 1
Build a calculator
21st Sep 2017, 1:19 PM
Xavier Siji Paul
Xavier Siji Paul - avatar