correct ex26.py