Write a python program to input n and display the following pattern. Example Input n=4 Output **** *** ** *
Example: * pattern by python
def pattern(n):
for i in range(0,n):
for j in range(0, i+1):
print("* " , end="")
print("\r") pattern(5