Question
In a similar manner to the first exercise, redefine the generalised version of putBoard using a list comprehension and sequence.
Step 1
```python def putBoard(board, row, col, value): return [board[i] if i != row else sequence(value, len(board[i])) for i in range(len(board))] ``` Now, let's break down the code: Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD