Question: Modify the code below to print a diamond shape. The diamond should have a single asterisk () symbol at the top and bottom. There should

 Modify the code below to print a diamond shape. The diamond

Modify the code below to print a diamond shape. The diamond should have a single asterisk () symbol at the top and bottom. There should be 9 asterisks in the middle row of the diamond shape. The expected output looks like: You can run the code using the Precheck button without losing any marks. Once you submit, you will loose 10\% of this question's mark allocation for each incorrect submission. Answer: (penalty regime: 10,20,% ) \begin{tabular}{l|l|l} 1 vef & return_diamond (): \\ 2 & \# A function which prints a diamond shape with 9 symbols in the middle \\ 3 & return (" \ ) \end{tabular}

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!