P02 - Print Diamond Shape
P02 - Print Diamond Shape
Write a Python program to construct the following pattern, using a nested loop
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
Aim : Print *s in Diamond Shape.
Procedure:
Step 7: Use the statements as like step 3 to 6 for decreasing for loop for printing second half of the pattern.
Output:
>>>
Enter a Number:5
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
>>>