January 2019
Beginner to intermediate
670 pages
18h 32m
English
Parameters are values that can change dynamically based on user input. They can replace constant values, in a range of different cases.
In the preceding example, we created a parameter that takes a number as an input from the user. We then used the value of the user input as the threshold score for membership in the set, by setting a condition. So, instead of the constant (average) value we inserted as the threshold value for set membership in the previous recipe, now we have a dynamic value, which changes our set every time a user inputs a new number. So, every time we change the user input, different years are included in or excluded from the set.
Read now
Unlock full access