I cannot output in python
I have tried using the output statement-doesn't work, I cannot find a solution in the python documentation other than the print statement-but I do not want to print the "output" on a piece of paper.
kilometers = 5.5
conv_fac = 0.621371
miles = kilometers * conv_fac
output('%0.3f kilometers is equal to %0.3f miles' %(kilometers,miles))
I want the code to output the correct answer in the Python shell but it does not work
printdoes not print the output on a piece of paper. Just useprint, it writes to standard output, which is yourshell.