While Loop Within While Loop Python Programs On Patterns