On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Text values
19. Functions and variables


Great job! Let's get back to functions.

Up until now, we've been passing in hard-coded values to our functions, but variables can also be passed in as arguments. For example, if a person's body weight of 85.4 kilograms has been saved in a variable named weight, then that variable can be used in the round function, like so


Here, the value stored in the variable weight is used within the function for x and is rounded to the nearest integer value. The function then returns the value 85.


We've defined a variable named weight_pounds to represent Tanya's weight in pounds. Round the value stored in this variable to the nearest integer.