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

Поділитися
Вставка
  • Опубліковано 1 чер 2024
  • 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 tonyteaches.tech
    Check out my vlog channel @TonyFlorida
  • Навчання та стиль

КОМЕНТАРІ • 7

  • @vaniad555
    @vaniad555 10 місяців тому

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

  • @m.ehtizan
    @m.ehtizan Рік тому

    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?

  • @josephreagan9545
    @josephreagan9545 3 місяці тому +1

    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.

  • @perastusovaighoro4924
    @perastusovaighoro4924 Рік тому

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

  • @bx_h23
    @bx_h23 Рік тому

    This works as well ;)
    python -c """print('Hello world!')"""

  • @nithilanbankamalakannan5876
    @nithilanbankamalakannan5876 Місяць тому

    why do bro look like this
    🤓 🤓