Y=1
N=0
cont=Y
print "Welcome to SCLMIP(Simple Calculator For Linux Made In Python)"
while cont == Y:
equation=input("Equation: ")
print equation
cont=input("Continue? (Y,N)")
else:
print "Exiting..."
If you type 5/2 you get 2, I want it to display 2.5.
A workaround is typing 5.0/2.0, but it gets annoying. I want it to automatically decide to show decimals.