How To Program A Loop In Python