Use a formatted string to prevent an error in the display statement.

Make sure to pick f followed by { and then total, }.