Python Program Using Looping Statements