Question: Draw the following shape using one print function per line. For each line, multiply a string containing a single space by the number of spaces,

Draw the following shape using one print function per line. For each line, multiply a string containing a single space by the number of spaces, multiply a string containing a single octothorpe by the number needed, then concatenate them together.
HINT: Use the strings "" and "#" on each line, multiplied by the needed length. Correct my code so a print is called with one argument 6 times - an expression containing a single space and a single octothorpe at least 6 times. And make sure a print is called with one argument 7 times - an expression containing a single octothorpe 7 times. Follow these steps to acheive the desired output, use input to a, find length of a, use string multiplication
a ="#"
len(a)
print(""*3+ a*1)
print(""*2+ a*3)
print(""*1+ a*5)
print(a*7)
print(""*1+ a*5)
print(""*2+ a*3)
print(""*3+ a*1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!