PLEASE HELP Write a function that takes a number of rows, a number of columns, and a string and returns a two-dimensional array of the dimensions specified where each element is the string given.

Sample run:

mat = fill_str(4, 2, "20")
print(mat)

Prints the following:

[['2', '20'], ['2', '20'], ['2', '20'], ['20', '20']]

Solved
Show answers

Ask an AI advisor a question