Загрузка...

#4 Intractive mode

Summary :-
- Python has 2 modes
1]Script Mode
2] Intractive mode / REPL {Read-Evaluate-Print-Loop}
-Intractive Mode
Allows you to execute Python commands one at a time and see the results immediately. This mode is particularly useful for testing small code snippets, debugging, or learning Python. When you enter a command, it is read, evaluated, and the result is printed instantly.
-To start the interactive mode, open your terminal or command prompt and type python or python3
-Script Mode
Script mode is used for writing and running more extensive Python programs. In this mode, you write your code in a text file with a .py extension and then execute the file using the Python interpreter. This mode is ideal for developing complex applications and allows you to save and edit your code easily.
-To run a Python script, follow these steps:
1]Create a text file with a .py extension (Example : Py1.py)
2]Write your Python code in the file
3]Save the file
4]Open your terminal or command prompt and navigate to the directory where the file is saved
5]Run the script using the python command:
python Py1.py
@ApnaCollegeOfficial @CodeWithHarry @freecodecamp @PhysicsWallah@GeeksforGeeksVideos @billgates

Видео #4 Intractive mode канала 𝗖𝗼𝗱𝗶𝗻𝗴 𝗞𝗮 𝗞𝗲𝗲𝗱𝗮
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять