You are given a rectangular matrix (a list of lists of numbers) and an integer threshold.
Return a new grid of the same shape (a list of lists of str) where each cell is:
'#' if the corresponding value in matrix is greater than or equal to threshold, and'.' otherwise.The original matrix must not be modified.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
[[1, 2], [3, 4]]
3
Returns
[['.', '.'], ['#', '#']]