Tting Started With Python
Tting Started With Python
Tting Started With Python
with Python`
Here starts the
lesson!
01
Introduction
Introduction
Python
• ABC language
• Modula-3
4. It is a very high level programming language as powerful as many other middle level languages. But not so powerful as high-level
5. This programming language was named after famous BBC comedy show namely Monty Python’s Flying Circus.
Python -pluses Python -minuses
2. Expressive language – It needs fewer lines of codes compared to many other languages.
3. Interpreted language – Python is an interpreted language means the code is converted and executed line by line. It makes python
an easy to debug language and thus suitable for beginners to advanced users.
4. Its completeness – you need not download and install additional libraries. All types of required functionality is available through
5. Cross- platform language – python can run equally well on different platforms- windows, Linux, Unix, Macintosh, super
• Scripting
• Web applications
• Game development
• System administrations
• Rapid prototyping
• GUI programs
• Database applications
Python- Minuses
1. Not the fastest language – Python is interpreted language not fully compiled one. Python is first semi-compiled into internal byte
code , which is then executed by python interpreter. Fully compiled languages are faster compared to semi-compiled and
interpreted.
2. Lesser libraries – Python offers library support for almost all computing programs, but still not competent with languages like C,
3. Not strong on type-binidng– Python interpreter is not strong on catching ‘type-mismatch’ issues. Eg. If you declare a variable as
integer and later store a string, python will not pin point it.
4. Not easily convertible– Because of lack of syntax, python is an easy language to program. But because of this, it is difficult to
Default installation available from www.python.org. It is called Cpython installation. It comes with python interpreter,
Anaconda Python distribution. It is highly recommended because it is preloaded with many packages and libraries like
Script mode
Working with CPython
The default distribution of Cpython comes with python IDLE(GUI based), Python interpreter and pip(package installer). You can work
1. Interactive mode
Working in interactive mode means you type the command –one command at a time , and the python executes the
give a name for the file. Python files will be having the extension .py
It will execute all the commands saved in the file in a separate shell window.
In script mode , you can store all commands together in the form of a script and can get all outputs together i.e. not
Anaconda distribution provides the following tools that you can use to work in python.
Spyder - It is a powerful Python IDE with useful editing, interactive testing and debugging functions.