Python One help with print messages?

I wrote an algorithm to calculate the sum of squares for any number that is inputted: n=6 count=1 total=0 while count<=n: total=total+count*count count=count+1 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... show more I wrote an algorithm to calculate the sum of squares for any number that is inputted:

n=6
count=1
total=0

while count<=n:
total=total+count*count
count=count+1

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?
1 answer 1