-----
Install Python:
MacOS: https://www.jcchouinard.com/install-p...
Windows: https://www.jcchouinard.com/install-p...
Anaconda: https://www.jcchouinard.com/install-p...
Subscribe to my Python Course waitlist: https://ba995fe7.sibforms.com/serve/M...
Support my work:
https://www.buymeacoffee.com/jcchouinard
Subscribe to this channel:
/ @jcchouinard
Follow me:
/ chouinardjc
/ jeanchristophechouinard
https://www.buymeacoffee.com/jcchouinard
/ @jcchouinard
Transcript
Hi there, my name is JCChouinard! In this Python tutorial, we will cover three different ways to run Python code: using the Python interpreter, the command line, and an integrated development environment (IDE). We will also discuss Python scripts and modules, as well as notebooks.
The Python interpreter is the software that you need to run Python code and scripts. You will need to install it to run Python. You can follow the provided articles and videos to install it. One way to run Python is through the terminal. You can access it by using the Python 3 keyword or Python, depending on your version. Once you enter this command, the Python interactive window will open, and you can start running Python code.
An integrated development environment (IDE) is software that allows you to program. Some IDEs are only for Python, while others are for multiple programming languages. We will be using VS Code, as it is free and convenient for programming. VS Code provides a tool for file management, the ability to open a terminal, and an interactive window.
Python scripts are Python files that you run directly, while modules are Python files that you import into another file to run. You can run Python scripts or modules in the integrated development environment. If you want to run a script, save the file with a ".py" extension and run it using "python3 filename.py" in the terminal. If you want to run a module, save the file with a ".py" extension and import it into another file using "import filename".
The Python interactive shell is useful for running Python code line by line. You can open the interactive shell by pressing "shift+enter" in VS Code. This feature allows you to run one line of code at a time.
Notebooks allow you to run Python code line by line, as well as document your code. You can create a notebook by saving a file with a ".ipynb" extension. Notebooks allow you to create documentation and run code line by line. However, you cannot run a notebook using "Python 3 nb.ipynb" in the terminal. You must save the file with a ".py" extension to run it in the terminal.
That's it for this beginner Python tutorial! If you have any questions or want to learn more, please subscribe to this channel and check out my upcoming course on Python SEO. You can also follow me on my blog, YouTube, Twitter, or LinkedIn. Thank you for watching, and see you next time!
Смотрите видео 3 WAYS to run Python (Terminal, IDEs and Notebooks) | jcchouinard.com онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Jean-Christophe Chouinard 29 Апрель 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,23 раз и оно понравилось людям.