Coding exercises in Python