[Python] Python how to execute code from a txt file

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

  1. Stack

    Stack Membro Participativo

    I want to keep a piece of code in a txt file and execute it from my Python script.

    For example in the txt file there is

    print("ok")

    I want my programme to print ok and not print print("ok "). How can I do this?

    Continue reading...

Compartilhe esta Página