Setting title to variable

Does anyone have some example code where they set the title of the graph using plotly.express to a variable instead of setting it to text directly in the code?

Thanks in advance

Pat