~cpp # -*- coding: cp949 -*- if __name__ == '__main__': pattern = raw_input('패턴 입력 : ') size = input('변의 길이 : ') spc = ' ' for i in range(size+1): print spc*(size-i) + pattern*(2*i-1) for i in range(size-1,0,-1): print spc*(size-i) + pattern*(2*i-1)