Write a function that accepts the height and width (m, n) and an optional proc s and generates a list with m elements. Each element is a string consisting of either:
#) repeating n times (if no proc is given).n times.make_rug(3, 5, '#') ➞ [
"#####",
"#####",
"#####"
]
make_rug(3, 5, '$') ➞ [
"$$$$$",
"$$$$$",
"$$$$$"
]
make_rug(2, 2, 'A') ➞ [
"AA",
"AA"
]
You can set a value for the parameter when creating the function e.g. def func(x = 3)