0

My calculator. Can you fix the error of printing unnecessary lines.

https://code.sololearn.com/cJ1Z011DRGR8/?ref=app

15th Dec 2017, 2:24 AM
Aritra Roy
Aritra Roy - avatar
2 Respostas
+ 3
You can pass in end= to set the end character(s) for the print function. The default is a newline character '\n'. So to change it to a space you would do something like: print("Hello", end=' ') print("World")
15th Dec 2017, 3:45 AM
ChaoticDawg
ChaoticDawg - avatar
0
I didn't see any extra lines just a single quote on line 2 before the Enter * 2 3 / 4 2 0 gave me: 'Enter (+-*/) or 0 to quit: x = y = Result: 6.0 'Enter (+-*/) or 0 to quit: x = y = Result: 2.0 'Enter (+-*/) or 0 to quit:
15th Dec 2017, 2:51 AM
John Wells
John Wells - avatar