Hello, my friends, I've got a problem with Part 15 of Python Course with a digit_sum function.
Please tell me, am I some kind of idiot or is this only a bug.
When I try to use function: int(4.0) the result is 4 -> that's correct.
But when I use int(variable), where variable is 4.0 too, function returns value 3 rather than 4.
As a confirmation I give you a screen:
Don't look at my commented function (I'm trying to make this exercise on crazy way)