Plotly express sunburst - print text from sector of chart

I am using the below code to generate a pie chart.

What is required is that when one clicks on a sector of the chart, print the name where
the mouse is clicked?

import as px

df =

fig = px.sunburst(df, path=['day', 'sex'],

this is a sample code. But it explains the requirement. Hope I have explained my self clearly.

Thank you