+ 1
please help to understand c qualifiers in python
explain the code to me I am unable to get it how output is being calculated? https://code.sololearn.com/c5DSYVu27FH7/?ref=app
1 Respuesta
+ 2
%s is for string
the code takes input (thats supposed to be a number) and sandwitches that number together side by side as a string and then converts to integer.
at the end, all integers are added.
example input: 5
# it would be
5
55
555
5555
# then the code adds em up
#output
6170
*you can test it by adding all those numbers above up