How To Loop Within A Loop Python Command Line