Skip to content

Instantly share code, notes, and snippets.

@jordanwesthoff
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save jordanwesthoff/f64e7353125891a50b4e to your computer and use it in GitHub Desktop.

Select an option

Save jordanwesthoff/f64e7353125891a50b4e to your computer and use it in GitHub Desktop.
Python script to simply calculate wind_chill
import os
import sys
import time
def getValue():
T = float(raw_input("Enter a number: "))
return T
def getValue():
V = float(raw_input("Enter a number: "))
return V
# Enter temperature here:
#T = 32 # Fahrenheit (degrees)
# Enter wind velocity here:
#V = 25 # Miles Per Hour
wind_chill = 35.74 + (0.621 * T) - (35.75 * (V**(0.16))) + (.4275 * T * ( V**(0.16)))
print windc_chill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment