32
Artur Alexandrov
Last seen 9 days ago
Member for 1 year, 6 months, 3 days
Difficulty Easy
Also there are lots of string methods, which check string for different conditions like isupper(), islower(), isalpha(), isdigit() etc. It can be useful for solving task on checking something.
More
I think it would be better if you use snake_case(int_total) or camelCase(intTotal), while naming the variables, but I don't insist, it's up to you. Nice solution!
More
Could you use elif instead of the second if in a while loop? It doesn't change the code in this case, but maybe semantically it is more right, I think. And great, good solution.
More
But your solution is very clear and readable, well done!
More
Nice, clear and readable solution. I think this task deserves at least moderate complexity, but not simple, just IMHO.
More
Yes, it's a very interesting using of multiplication in this case. Well done.
More
Great solution with detailed comments.
More
Yes, slicing is a key approach of solving this task, but your solution is also fine.
More