Exercise: Callback Functions

Practice with some lab exercises.

Exercise 1

Create a simple Dash app that allows a user to select from a Dash Core Components radio button. The options should be "Cricket", "Swimming", "Running" and whichever option the user selects, output some text inside a paragraph HTML component returning the text You chose {sport_chosen}. Here sport_chosen is the parameter specified for the dash callback function. Set "Cricket" to the default if nothing has been actively selected by the user just yet.

Get hands-on with 1400+ tech skills courses.