We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In lesson 1.2.5, one of the notes says:
Other interpreters also offer the possibility to execute scripts (e.g., execfile in the plain Python interpreter, etc.).
execfile
However, execfile has long been deprecated in python 3. I think the relavent syntax in python3 is exec(open("./filename").read())
exec(open("./filename").read())
The text was updated successfully, but these errors were encountered:
Since this is something you very seldom do (it would be better to import a module, rather than exec it), I'd opt for removing that box entirely.
Sorry, something went wrong.
No branches or pull requests
In lesson 1.2.5, one of the notes says:
However,
execfile
has long been deprecated in python 3. I think the relavent syntax in python3 isexec(open("./filename").read())
The text was updated successfully, but these errors were encountered: