>>> print(reverse_number(1234567890)) 987654321
You did not pass.
987654321 is how I expect it to work though without the 0 in the beginning as you should return a positive integer.
987654321
positive integer
That was not a part of the question, so I would say that the result should still start with a 0.
the positive integer shouldn't have a leading zero I don't think. It's at least up to interpretation.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You did not pass.
987654321
is how I expect it to work though without the 0 in the beginning as you should return apositive integer
.That was not a part of the question, so I would say that the result should still start with a 0.
the positive integer shouldn't have a leading zero I don't think. It's at least up to interpretation.