title: how to execute Python 3.3 script in Spyder console with variables?
body: <p>how can I execute Python 3.3 script in Spyder console, and that has variables?</p>
  
  <p>My sample code (C:/test/myfile.py) is</p>
  
  <pre><code>from sys import argv
  script, first, second, third = argv
  print("The script is called:", script)
  print("Your first variable is:", first)
  print("Your second variable is:", second)
  print("Your third variable is:", third)
  </code></pre>
  
  <p>I have tried exec(open("C:\test\myfile.py").read()) - and the error I get is "ValueError: need more than 1 value to unpack. I want to supply the variables first = "1st", second = "2nd", third = "3rd". How can I write the exec() so that it can handle the inputs?</p>
  
  <p>I'm using Python 3.3, 64-bit installation, Windows OS, installation: WinPython. </p>