A binary setting

Report a typo

Write a function that takes an argument: the type of settings, TEST or PROD, and generates a dictionary with settings. The settings can be found below:

Test
DEBUG True
ENV development
TEMPLATES_AUTO_RELOAD True
Prod
DEBUG False
ENV production
TEMPLATES_AUTO_RELOAD False

You can specify settings in the dictionary in any order.

Sample Input 1:

TEST

Sample Output 1:

True
development
True

Sample Input 2:

PROD

Sample Output 2:

False
production
False
Write a program in Python 3
def settings_router(s_type: str):
# your code here
___

Create a free account to access the full topic