How to do Python Scripting (run a python py file)

preview_player
Показать описание
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

Check out my vlog channel @TonyFlorida
Рекомендации по теме
Комментарии
Автор

ADHD moment: I think I used to have that same electric kettle. I had tried to get a smart one once but it was never as good as a simple "dumb" electric kettle. Now I have a different "dumb" kettle from Costco and it is perfect. Thank God for companies that still make simple nonsmart products.

josephreagan
Автор

Hey Tony, I just watched your video and I must say that it was really informative and well-made. I loved your videos. I was wondering if I could help you edit your videos and also make highly engaging shorts for you?

m.ehtizan
Автор

Great video, what text editor did you use in this case ( mac user )?

vaniad
Автор

Hello brother please, how can I contact u personally. I need some assistance on ssh

perastusovaighoro
Автор

This works as well ;)

python -c """print('Hello world!')"""

bx_h