title: Python how to execute code from a txt file
body: <p>I want to keep a piece of code in a txt file and execute it from my Python script.</p>
  
  <p>For example in the txt file there is </p>
  
  <p><code>print("ok")</code></p>
  
  <p>I want my programme to print <code>ok</code> and not print <code>print("ok ")</code>. How can I do this?</p>