We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
below solution should be acceptance, not sure which test case is getting blocked, but seems using 'str' is not allowd with this example.
n = int(input())
def pattern_output(n):
for i in range (1, n):
print (str(i) *i)
pattern_output(n)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Triangle Quest
You are viewing a single comment's thread. Return to all comments →
below solution should be acceptance, not sure which test case is getting blocked, but seems using 'str' is not allowd with this example. n = int(input()) def pattern_output(n): for i in range (1, n): print (str(i) *i)
pattern_output(n)