Please write a function named triangle, which draws a triangle of hashes, and takes one argument. The triangle should be as tall and as wide as the value of the argument. The function should call the function line from the exercise above for the actual printing out. Copy your solution to that exercise above the code for this exercise. Please don't change anything in the line function. Some examples: triangle (6) print () triangle (3) ## ### #### ##### ###### ## ### Sample output

icon
Related questions
Question
Please write a function named triangle, which draws a triangle of hashes, and takes one
argument. The triangle should be as tall and as wide as the value of the argument.
The function should call the function line from the exercise above for the actual printing
out. Copy your solution to that exercise above the code for this exercise. Please don't
change anything in the line function.
Some examples:
triangle (6)
print ()
triangle (3)
#
##
###
####
#####
######
#
##
###
Sample output
Transcribed Image Text:Please write a function named triangle, which draws a triangle of hashes, and takes one argument. The triangle should be as tall and as wide as the value of the argument. The function should call the function line from the exercise above for the actual printing out. Copy your solution to that exercise above the code for this exercise. Please don't change anything in the line function. Some examples: triangle (6) print () triangle (3) # ## ### #### ##### ###### # ## ### Sample output
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer