study notes with python code