Learning Python by solving Leetcode problems