Nested While Loop Python Examples Using Numpy