Practice codes for Python