INTRODUCTION TO PYTHON
A computer is a versatile machine that can perform millions of tasks , but can
neither think nor make any decisions on its own. It requires a program to
instruct what needs to be done.Thus a program is a set of instructions written in
a sequence that guides the computer to solve a particular task and to write a
program we need a programming language. To communicate with computers we
need a programming language.
Python is a general-purpose programming language that can be used to build
any kind of program. The programming language has been coined ‘PYTHON’
because just as the reptile has a flexible body the language too is easy,simple
and highly flexible.
Python is an open source, object-oriented, high-level
programming language developed by Guido van
Rossum in 1991 at National Research Institute for
Mathematics, Netherlands. It is presently owned by
Python Software Foundation . The first and foremost thing to be done while
writing a program is understanding the problem well , analyzing it and trying to
solve it in a logical manner.
Python is used by Google search engine, YouTube , Web scripting , gaming ,
commercial robots and in space and scientific applications.
Features of Python
● Platform Independent: It is platform-independent and can run across
many platforms like Windows, Linux/unix, MAC OS and many other
platforms.
● Readability:Python programs use clear and simple English-like
instructions that are easy to read and understand.
● Object-Oriented language: It is an interactive, interpreted, and
object-oriented programming language.
● Less Learning Time: Python is simple and has shorter code, therefore it
takes less time to understand and learn Python programs
● Ample availability of Libraries: Python Libraries are a group of
pre-written codes , functions and modules that provide ready-to-use
functionalities for various tasks.
, ● Case-sensitive language: Python differentiates between capital and small
alphabets. For example, Print(P capital) and print (p small) are two
different things for python.
● Syntax Highlighting:It allows distinguishing between input , output and
error messages by different colour codes.
Installing Python
To install Python, you must first download the installation package from the
link/URL below:
https://www.python.org/downloads/
Interacting with Python
To write and run Python programs interactively , we can either use the
command line window or the IDLE.
IDLE is a simple Integrated Development Learning Environment.
Python IDLE comprises two modes: Python shell(Interactive mode) and Python
Editor(Script mode).
Python shell ( Interactive mode)
Python shell is an interactive window
where you can type in Python code and
see the output in the same window. It
does not save commands in the form of
a program. It is suitable for testing
codes.
On opening, the Python shell shows a
welcome message displaying its version
and a copyright notice.
After this ,the command prompt(>>>) followed by a blinking cursor gets
displayed,which indicates that IDLE is ready to take Python commands from
the user.
A computer is a versatile machine that can perform millions of tasks , but can
neither think nor make any decisions on its own. It requires a program to
instruct what needs to be done.Thus a program is a set of instructions written in
a sequence that guides the computer to solve a particular task and to write a
program we need a programming language. To communicate with computers we
need a programming language.
Python is a general-purpose programming language that can be used to build
any kind of program. The programming language has been coined ‘PYTHON’
because just as the reptile has a flexible body the language too is easy,simple
and highly flexible.
Python is an open source, object-oriented, high-level
programming language developed by Guido van
Rossum in 1991 at National Research Institute for
Mathematics, Netherlands. It is presently owned by
Python Software Foundation . The first and foremost thing to be done while
writing a program is understanding the problem well , analyzing it and trying to
solve it in a logical manner.
Python is used by Google search engine, YouTube , Web scripting , gaming ,
commercial robots and in space and scientific applications.
Features of Python
● Platform Independent: It is platform-independent and can run across
many platforms like Windows, Linux/unix, MAC OS and many other
platforms.
● Readability:Python programs use clear and simple English-like
instructions that are easy to read and understand.
● Object-Oriented language: It is an interactive, interpreted, and
object-oriented programming language.
● Less Learning Time: Python is simple and has shorter code, therefore it
takes less time to understand and learn Python programs
● Ample availability of Libraries: Python Libraries are a group of
pre-written codes , functions and modules that provide ready-to-use
functionalities for various tasks.
, ● Case-sensitive language: Python differentiates between capital and small
alphabets. For example, Print(P capital) and print (p small) are two
different things for python.
● Syntax Highlighting:It allows distinguishing between input , output and
error messages by different colour codes.
Installing Python
To install Python, you must first download the installation package from the
link/URL below:
https://www.python.org/downloads/
Interacting with Python
To write and run Python programs interactively , we can either use the
command line window or the IDLE.
IDLE is a simple Integrated Development Learning Environment.
Python IDLE comprises two modes: Python shell(Interactive mode) and Python
Editor(Script mode).
Python shell ( Interactive mode)
Python shell is an interactive window
where you can type in Python code and
see the output in the same window. It
does not save commands in the form of
a program. It is suitable for testing
codes.
On opening, the Python shell shows a
welcome message displaying its version
and a copyright notice.
After this ,the command prompt(>>>) followed by a blinking cursor gets
displayed,which indicates that IDLE is ready to take Python commands from
the user.