0
How can I separate the two entries in a calculator using Python?
paython
3 Answers
+ 4
Please can you explain your question abit . I don't know if you are taking about the input or what
Thsnks
0
x=int(6+3)
print (x)
x=int(11+22)
print (x)
In these codes, I want the output to be the first or second code
0
you don't need to enclose your operation inside int() call...
int() is used to convert something to int... but result of int+int is still an int.
to output one code or another you need an 'if...else' conditional statement, but you should determine on wich condition wich output will be printed ^^