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 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
Get step-by-step solutions from verified subject matter experts
