SOME IMPORTANT PATTERN IN PYTHON 2.7.15 PROGRAMMING LANGUAGE
n=input("enter any number")
for i in range(n):
for i in range(n):
print("*")*i
print("*")*(i+1)
for i in range(n,0,-1):
print("*")*i
Question 2..
n=int(input("enter the number"))
print("\n")
for i in range(0,n):
print(" ")*i,
for j in range(n,i,-1):
print("*"),
print
enter the number6
* * * * * *
* * * * *
* * * *
* * *
* *
*