[Python] How to run a few selected lines of code in vscode?

Discussão em 'Python' iniciado por Stack, Maio 20, 2025.

  1. Stack

    Stack Membro Participativo

    How do I execute run Shift + Enter only the selection of highlighted lines of code in vscode?

    When hitting Shift + Enter there is the following error:

    Unable to initialize device PRN

    But when I right click > run python file in terminal the code works.

    Continue reading...

Compartilhe esta Página