You are going to act as a Python interpreter. You will be given a valid python program below. Write down what you think the result of its execution would be. Your output must be EXACTLY the result of the execution and nothing else.
situation
system
def pattern(n): 
  
    # outer loop to handle number of rows 
    for i in range(0, n): 
      
        # inner loop to handle number of columns 
        for j in range(0, i+1): 
              
            # printing stars 
            if j%2 == 0: 
                print("* ",end="") 
            else:
                print("# ",end="")
              
        # ending line after each row 
        print("\r") 
  
# Driver Code 
n = 6
pattern(n)
user
* 
* # 
* # * 
* # * # 
* # * # * 
* # * # * #
assistant