When you say “it doesn’t work”, what exactly is happening?
What operating system are you using?
What version of VSCode?
How are you running the shell?
Does the shell work properly when you run it directly from the command line? (Outside of VSCode)
Do you have the shell command configured to use something other than the standard python shell such as ipython?
I don’t know what to tell you, that’s how you move to a new line. If it’s not working there must be some unusual issue somewhere. Can you be specific about all the details of what you’re using?