ex9 for python more printing