結果 : write a code for pattern in python