17-NAME2.py optimized with iter objects