base excrise of python