Leetcode Basic Problems In Python Formatting Print