While loop as indefinate loop

Question number 86

I did not understand the assignment.

I tried to sum range of values upto n but it is giving me only 45 values

Please clarify.



It is not giving me output as 55.


Try just printing i. You will understand that range(0, n) give a range from 0 to n - 1.

I do not understand still i am facing the same issue

if i give string i get this error.