In Python, write a nested for loop (i.e. a loop inside a loo…

In Python, write a nested for loop (i.e. a loop inside a loop) that iterates through each character in the string ‘tree’ and produces the following output. Be sure to use the string “tree” in the loop. t tt ttt rr rrr rrrr eee eeee eeeee eeee eeeee eeeeee