Python programming exercises, I