結果 : how does python know when a for loop ends