Generation

generate functionMon, 20 Feb 2023

triangle of #

def triangle(rows): for i in range(0, rows): for j in range(0, i + 1): print("#", end=' ') print("\r")

Questions about programming?Chat with your personal AI assistant