79117963

Date: 2024-10-23 12:51:52
Score: 2
Natty:
Report link

An uninformative error message indeed. Apparenlty, replace_with() takes variable length argument (*args), rather than a list of elements, so when given a list it attempts to insert that as if it were an element. Passing the list unpacked:

replace_with(*data)

is the way to go.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user2333250