ex7 for python more printing