print a pattern based on a number very easy
Given a positive integer n, create an increasing numeric pattern with n rows. Row i contains the numbers from 1 through i, separated by single spaces. Return the complete pattern as a string, with rows separated by newline characters. Do not add a trailing newline.
print_pattern(n) receives an integer and returns a string.
def print_pattern(n):