python pre-semester practice