Tkinter coords vs canvas.create_<widget>

Why does tkinter support doubly nested loops for canvas.create_ but not canvas.coords?

Hi and welcome.

Maybe you could post a code block in order to illustrate your question.

Please use Markdown formatting for code blocks:

```python
place your code between
the open tag, as above
and the close tag, below
```
import numpy as np
import tkinter as tk


root = tk.Tk()
canvas = tk.Canvas(width=400,
                   height=400,
                   background="bisque")
canvas.pack(fill="both", expand=True)
line = canvas.create_line([[100, 100], [300, 300]])
canvas.coords(line, [[100, 100], [200, 200]])  # line with error

root.mainloop()```

{content remove by author}

Sorry; that did not answer your question, so I’ve removed it.