結果 : how to write table using while loop in python