Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

3.

11 LAB: Input and formatted output:


Right-facing arrow
Instructor note:
Note: this section of your textbook contains activities that you will complete for
points. To ensure your work is scored, please access this page from the
assignment link provided in Blackboard. If you did not access this page via
Blackboard, please do so now.
Given input characters for an arrowhead and arrow body, print a right-facing
arrow.
Ex: If the input is:
*
#
Then the output is:
#
******##
******###
******##
#

base_char = input()

head_char = input()

base_width = 3

row1 = ' ' * base_width + head_char

row2 = base_char * 6 + head_char * 2

row3 = base_char * 6 + head_char * 3


print(row1)

print(row2)

print(row3)

print(row2)

print(row1)

You might also like