write a pattern code using python for the given inverted half pyramid pattern with number 012345,01234,0123,012,01 code example
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