Question: Python 3 Diamond Code Question How can I get the my output to look exactly like this? Preferably using def. Here is the code that

Python 3 Diamond Code Question
How can I get the my output to look exactly like this?
Preferably using def.
 Python 3 Diamond Code QuestionHow can I get the my output
Here is the code that I tried:
Notice the spacing on diamond(2), there are only 2 (**) asterisks in the middle, and on the one I am trying to achieve there are 3(***). I just need help formatting the spacing. Thanks!
to look exactly like this?Preferably using def. Here is the code that

17 18 diamond (1 diamond (2 diamond (5 ( 19 20 1 Process finished with exit code 0 In [14]: def diamond (rows) : for i in range(rows) : print(" "* (rows-i-1)+ " *"* (i+1)) for j in range (rows-1,0,-1): print(" "*(rows-7)+" *"*(j)) diamond (1) diamond (2) diamond (5) * * * * * *

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!