+ 2
can any one explain the python code?
n = int(input()) length = 0 while (n > 0): length += (n % 10) n = n//10 print(length) A:- 13
2 Answers
+ 2
Thank you so much
+ 1
User enter 238 to get 13 as final length after looping .Here i comment your code with 35 as supposed inputhttps://code.sololearn.com/cwpSjn5WKCg3/?ref=app