def windchill(V,T):
wc = 35.74 + .6215*T-35.75*(V**.16)+.4275*(V**.16)
we = round(wc,2)
return we
def main():
print(" Temperature \n")
print("Speed \n")
print("---- -20 70 10 0 10 20 30 40 50 60 ")
for V in range(0,55,5):
print(V)
for T in range(-20,70,10):
wc = windchill(V,T)
print(V, "{0:1.1f}".format(wc), end="")
main()
Its python 3, I feel like I've tried everything, i.e. round(), int(), {0:1.1f}, but none are working the way I expected. I'm a CSC noob though, so I'm looking for a little help