- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
#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 канала 𝗖𝗼𝗱𝗶𝗻𝗴 𝗞𝗮 𝗞𝗲𝗲𝗱𝗮
- 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 канала 𝗖𝗼𝗱𝗶𝗻𝗴 𝗞𝗮 𝗞𝗲𝗲𝗱𝗮
Комментарии отсутствуют
Информация о видео
23 мая 2026 г. 13:18:34
00:02:05
Другие видео канала



