Accept the number of rows from a user using the input() function to decide the size of a pattern. Next, write an outer loop to Iterate the number of rows using a for loop and range() function. Next, write the inner loop or nested loop to handle the number of columns.