I am coding Leetcode "Reverse Interger" question in python. I took look of the solution they supplied. I dont know why they need to have such condition:
i