Python laboration program codes.