Running Python Files
00:00
That’s a nice command, and since it’s a Python file now with Python code in it, you can run it just like a Python file, right? That’s right. I can just type python
and then the name of the file, press Tab to autocomplete, and then here it is.
00:16
The Python interpreter ran hello_terminal.py
, executed the print()
function, and then printed Hello, Terminal!
to the terminal.
00:25
Perfect. Yeah. So now you’re using clear
again to—ready for it—clean the terminal. Go for it.
Become a Member to join the conversation.