This one and
This phrase and why doesn't it work at the bottom, s is an integer valuepython
The problem is, perhaps, asking about the each digit of any natural number.
If you treat that natural number as a string, the code becomes really simple.
But if you really treat that natural number as a natural number and solve the problem, it gets complicated.
That's why your code doesn't work. At least this much should be done so that
S can be used as an integer.
I don't know if that's the answer.
input returns the str object. You have to provide an int object, but it doesn't work, so it works differently.
© 2022 pinfo. All rights reserved.