Last active
August 29, 2015 14:15
-
-
Save jordanwesthoff/f64e7353125891a50b4e to your computer and use it in GitHub Desktop.
Python script to simply calculate wind_chill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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