python exercise source codes.