This is my working code. I want to use pure iteration in this that\'s why I purposely didn\'t use array and strings:
def print_triangles(h): base = 2 * h