Python on Practice-Labs My Review
Channel: Trial & Error - Self Paced Learning
Date: 2019-11-24

in this video I performed following tasks
Task 1 - Write a program in script mode and execute it
Task 2 - Write a program in interactive mode and execute it


In a programming language, data type is an entity that determines the type of data used in the programs. Primitive or the most basic data types are frequently used in programs. Similar to other programming languages, primitive data types are used in Python also. These are string, integer, float, and boolean. You need not explicitly mention the data types in Python programs. Data types are dynamically derived when you assign values to it. You will learn more about the dynamic derivation feature of Python data types in this module’s tasks.

Python is an interactive, object-oriented, high-level, and user-friendly programming language. The Integrated Development Environment (IDE) of Python is called IDLE. There are two modes in IDLE - interactive and script. The Python Shell window is the interactive mode and the Editor window is the script mode.

In the interactive mode, you get immediate output for every code typed at the prompt. However, you cannot save the typed code in a program file.

In the script mode, you can write a block of code, save it as a .py file, and execute it. The output of the .py file is displayed at the Shell prompt. You can reuse the stored .py file and make necessary changes whenever required.

In this exercise, you will learn to write Python programs in both script and interactive mode, and execute it respectively. In the programs, you will declare variables of primitive data types, assign values to it, and print the values.