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 times an expression containing a single space and a single octothorpe at least times. And make sure a print is called with one argument times an expression containing a single octothorpe times.
a #
lena
print a
print a
print a
printa
print a
print a
print a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
