
Implement replace_in_rows, which returns a copy of rows of numbers where one value is replaced by another, leaving the original rows untouched.
replace_in_rows([[4, 0, 4], [1, 2]], 4, 9)[[9, 0, 9], [1, 2]]replace_in_rows([[], [3, 3]], 3, -1)[[], [-1, -1]]replace_in_rows([], 5, 6)[]replace_in_rows.py
Run the tests to grade your code
Implement replace_in_rows, which returns a copy of rows of numbers where one value is replaced by another, leaving the original rows untouched.
replace_in_rows([[4, 0, 4], [1, 2]], 4, 9)[[9, 0, 9], [1, 2]]replace_in_rows([[], [3, 3]], 3, -1)[[], [-1, -1]]replace_in_rows([], 5, 6)[]replace_in_rows.py
Run the tests to grade your code
Variables will appear here