Explain While Loop And For Loop With Arrays Python