How can I round to 3 decimal places in python?
Attached is my code. Say I enter 25 for the feet per second prompt.
This is the output.
0.45719999999999994 kilometers per min
I want that number rounded to 3 decimal places.
def ftsecTokmin(x):
return x*0.018288
n = float(input("Enter the speed in feet per second: "))
print(ftsecTokmin(n), "kilometer per min")