Complete the function named get_regional_settings(computer_settings, user_settings)
, whose stub is provided in the template code.
The function should return a regional settings dictionary for a given user. It should contain three elements: language, currency, and timezone. The default values are given in the template code. The logic is as follows:
- If there is a value for the given key in
user_settings
, use that setting.
- If there is no value in
user_settings
, use the value in computer_settings
.
- If there is no value in
computer_settings
, use the default value.
You can test your function with the samples given in the template code.