
Ultimate access to all questions.
A data analyst is tasked with performing exploratory data analysis on weather data across multiple countries. She needs to select a single country's name at a time, assign it to a Python variable for use as a parameter in a function processing that country's data, with 'India' as the default country. Which of the following code blocks accomplishes this task?
A
dbutils.widgets.list("country", "India", ["India", "Canada", "England", "USA"])current_country = dbutils.widgets.get("country")_
B
dbutils.widgets.dropdown("country", "India", ["India", "Canada", "England", "USA"])current_country = dbutils.widgets.get("country")_
C
dbutils.widgets.options("country", "India", ["India", "Canada", "England", "USA"])current_country = dbutils.widgets.get("country")_
D
dbutils.widgets.select("country", "India", ["India", "Canada", "England", "USA"])current_country = dbutils.widgets.get("country")_
E
dbutils.widgets.checkbox("country", "India", ["India", "Canada", "England", "USA"])current_country = dbutils.widgets.get("country")_