HackerRank Triangle Quest solution in Python YASH PAL, 31 July 202417 January 2026 HackerRank Triangle Quest solution in Python – You are given a positive integer N-1. Print a numerical triangle of height like the one below:1 22 333 4444 55555 ...... Can you do it using only arithmetic operations, a single for loop and print statement? Use no more than two lines. The first line (the for statement) is already written for you. You have to complete the print statement.Note: Using anything related to strings will give a score of 0.Input FormatA single line containing integer, N. HackerRank Triangle Quest solution in Python 2 programming.for i in range(1,input()): print i*((10**i - 1)/ 9 )Triangle Quest Problem solution in Python 3.for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also print((10**i - 1) // 9 * i)Problem solution in pypy programming.for i in xrange(input()-1): print (i+1)*(10**(i+1)-1)//9Problem solution in pypy3 programming.for i in range(1,int(input())): print(i*(pow(10,i)//9)) coding problems solutions Hackerrank Problems Solutions Python Solutions HackerRankPython