ex22.py with for and range