Python One help with print messages?
I am wondering how to make my algorithm print the following message at the end:
"The sum of squares from 1 to n = total"
But I obviously want the print message to actually state the value of n and the value of total. So, for example, if n=6, then I want the algorithm to print:
"The sum of squares from 1 to 6 = 91"
How do I go about doing this?