<\/span><\/h2>\n\n\n\nYou are given a positive integer N<\/em><\/strong>.
Your task is to print a palindromic triangle of size N<\/em><\/strong>.<\/p>\n\n\n\nFor example, a palindromic triangle of size 5<\/strong> is:<\/p>\n\n\n\n1\n121\n12321\n1234321\n123454321<\/code><\/pre>\n\n\n\nYou can’t take more than two lines. The first line (a for<\/em>-statement) is already written for you.
You have to complete the code using exactly one print statement.<\/p>\n\n\n\nNote<\/strong>:
Using anything related to strings<\/em> will give a score of 0<\/strong>.
Using more than one for<\/em>-statement will give a score of 0<\/strong>.<\/p>\n\n\n\n<\/span>Input Format<\/strong><\/span><\/h2>\n\n\n\nA single line of input containing the integer N<\/em><\/strong>.<\/p>\n\n\n\n<\/span>Constraints<\/strong><\/span><\/h2>\n\n\n\n- 0 < N <\/em>< 10<\/strong><\/li><\/ul>\n\n\n\n
<\/span>Output Format<\/strong><\/span><\/h2>\n\n\n\nPrint the palindromic triangle of size N<\/em><\/strong> as explained above.<\/p>\n\n\n\nSample Input<\/strong><\/p>\n\n\n\n5<\/code><\/pre>\n\n\n\nSample Output<\/strong><\/p>\n\n\n\n1\n121\n12321\n1234321\n123454321<\/code><\/pre>\n\n\n\n<\/span>Solution – Triangle Quest 2 in Python <\/strong><\/span><\/h2>\n\n\n\nfor i in range(1, int(input())+1):\n print(((10**i)\/\/9)**2)<\/pre>\n\n\n\n