leetcode python basic practice