# Write a Python Program to print digit pattern # function to print the patterndef pattern(n):      # traverse through the elements    # in n assuming it as a string    for i in n:          # print | for every line        print("|", end = "")          # print i number of * s in         # each line        print("*" * int(i))  # get the input as string        n = "41325"pattern(n)