Hi @PengGe-MSFT ,
My apologies for the delayed reply. Most other forums give notification by email when a post has been replied to, but this one apparently does not.
I see also that the code snippets in my original post got inserted as text rather than code and lost the indentation, which must have been confusing.
In any case, thanks for your update and the link to the VS Interactive Window documentation. After reviewing it, I must agree that this seems like a bug. Interestingly, when I open the python code snippet with the unpack operator as a Visual Studio project, then demarcate it as a code cell (using a preceding comment line starting with "#%%"), and then send it to the python interactive window using Ctrl+Enter, I do not get the "Unexpected Indent" error, but it nevertheless does not execute correctly. The output is:
j = 0
j = 1
j = 2
>>> print(*mylist)
22 23 24 25 26 27 28 29 30 31 32
which indicates that the print(*mylist) command is, as you say, being executed as a new line of code, rather than being incorporated into the "for j" loop.
I'll try to properly compose this into a question/issue for the VS Product team as you suggest, and will post a link to it here if I receive any substantive replies.