write a python program to find a star in diamond shape
Answers
Answered by
1
Answer:
In this article, I show you how to Print Pattern using for loop in Python. I have created multiple python examples to print Number, Pyramid, Asterisk (star), Diamond pattern. Python programs in this article demonstrate how to print half pyramid, pyramid, inverted pyramid using for ...
Answered by
1
Answer:
I would like to print the following pattern in Python 3.5 (I'm new to coding):
*
***
*****
*******
*********
*******
*****
***
*
But I only know how to print the following using the code below, but not sure how to invert it to make it a complete diamond:
n = 5
print("Pattern 1")
for a1 in range (0,n):
for a2 in range (a1):
print("*", end="")
print()
for a1 in range (n,0,-1):
for a2 in range (a1):
print("*", end="")
print()
*
**
***
****
*****
****
***
**
*
Any help would be appreciated!
please mark me as brainlist I will follow you
Similar questions