0 out of 464 challenges solved
Write a Python function `wind_chill(v, t)` that calculates the wind chill index given the wind velocity `v` in km/h and the temperature `t` in Celsius. The wind chill index is calculated using the formula: \[ WCI = 13.12 + 0.6215 \cdot t - 11.37 \cdot v^{0.16} + 0.3965 \cdot t \cdot v^{0.16} \] The result should be rounded to the nearest integer. #### Example Usage ```python [main.nopy] print(wind_chill(120, 35)) # Expected output: 40 print(wind_chill(40, 20)) # Expected output: 19 print(wind_chill(10, 8)) # Expected output: 6 ``` #### Constraints - The function should handle positive values for `v` and `t`. - Use the `math` module for calculations.
import math def wind_chill(v, t): """ Calculate the wind chill index given wind velocity and temperature. Args: v (float): Wind velocity in km/h. t (float): Temperature in Celsius. Returns: int: The wind chill index rounded to the nearest integer. """ # Placeholder for the wind chill calculation pass