some code for practice in learning python