Learn how to write a Python script and run it as a .py file. This tutorial will not only show you the basics of Python scripting, but also some of the nuances like what “if name equals main” means and what the shebang line does.
00:00 Intro to Python scripting
00:12 Check Python version
00:32 How to use the Python shell
00:51 How to make a Python script
01:48 Make an executable Python script
03:57 Function in a Python script
05:13 Passing arguments to Python script
06:40 Make a Python module
Find more at [ Ссылка ]
Check out my vlog channel @TonyFlorida
How to do Python Scripting (run a python py file)
Теги
.py filehow to run a python scripthow to run py filehow to run py file in terminalhow to run python scriptif name mainif name main pythonpy filepython 3 shebangpython if name equals mainpython if name is mainpython if name mainpython scriptpython script examplepython scriptingpython shebangpython shebang linerun .py file in terminalrun a py filerun python scriptrun python script from command lineshebang line pythonshebang python