0
What exactly is wrong with this code
print ("enter the 1st number") X=input () print ("enter the second number") Y=input () print("enter the operator") Z=input () if Z=='x': print ("X*Y")
6 Respostas
+ 2
The problem with the code is it doesnt work.
+ 2
To fix it change
print(“X*Y”) to
print (int(X)*int(Y))
https://code.sololearn.com/csV2U8N8Pw5t/?ref=app
+ 1
Thanks Rik Wittkopp
0
Thanks Caleb
0
But can you explain why the int is added