5 Mayank Python Introduction
5 Mayank Python Introduction
Introduction to Programming
1. What is Python?
Python supports multiple programming paradigms, including Procedural, Object Oriented and
Functional programming language.
Today, Python is very high in demand and all the major companies are looking for great Python
Programmers to develop websites, software components, and applications or to work with Data
Science, AI, and ML technologies.
Python is Interpreted − Python is processed at runtime by the interpreter. You do not need
to compile your program before executing it. This is similar to PERL and PHP.
Python is Interactive − You can actually sit at a Python prompt and interact with the
interpreter directly to write your programs.
Python is Object-Oriented − Python supports Object-Oriented style or technique of
programming that encapsulates code within objects.
Python is a Beginner's Language − Python is a great language for the beginner level
programmers and supports the development of a wide range of applications from simple
text processing to WWW browsers to games.
Game developer
Web designer
Python developer
Full-stack developer
Machine learning engineer
Data scientist
Data analyst
Data engineer
DevOps engineer
Software engineer
Many more other roles
5. Characteristics of Python
6. Applications of Python
Easy-to-learn − Python has few keywords, simple structure, and a clearly defined
syntax. This allows the student to pick up the language quickly.
Easy-to-read − Python code is more clearly defined and visible to the eyes.
Easy-to-maintain − Python's source code is fairly easy-to-maintain.
A broad standard library − Python's bulk of the library is very portable and cross platform
compatible on UNIX, Windows, and Macintosh.
Interactive Mode − Python has support for an interactive mode which allows interactive
testing and debugging of snippets of code.
Portable − Python can run on a wide variety of hardware platforms and has the same
interface on all platforms.
Extendable − You can add low-level modules to the Python interpreter. These modules
enable programmers to add to or customize their tools to be more efficient.
Databases − Python provides interfaces to all major commercial databases.
GUI Programming − Python supports GUI applications that can be created and ported to
many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and
the X Window system of Unix.
Scalable − Python provides a better structure and support for large programs than shell
scripting.
7. Installation of Python
This installs Python at standard location /usr/local/bin and its libraries at /usr/local/lib/pythonXX
where XX is the version of Python.
B. Windows
In the System Properties dialog, click the Advanced tab and then click Environment
Variables.
If you selected Install for all users during installation, select Path from the list of
System Variables and click Edit.
If you didn’t select Install for all users during installation, select Path from the list of
User Variables and click Edit.
Click New and enter the Python directory path, then click OK until all the dialogs are
closed.
Step 4 — Verify the Python Installation
Go to Start and enter cmd in the search bar. Click Command Prompt.
python --version
Output
Python 3.10.10
Experiment of Notepad/ CMD python
What is an IDE?
IDEs increase programmer productivity by introducing features like editing source code,
building executables, and debugging.
1. IDLE
The IDLE tool can be used on Mac OS, Windows, and Linux
Price: Free
2. PyCharm
This IDE is suitable for professional developers and facilitates the development of
large Python projects
Price: Freemium
Visual Studio Code is an open-source (and free) IDE created by Microsoft. It finds great
use in Python development
VS Code is lightweight and comes with powerful features that only some of the paid IDEs
offer
Price: Free
4. Jupyter
It is easy to use, interactive and allows live code sharing and visualization
Price: Free
5. Spyder
Spyder comes with Anaconda distribution, which is popular for data science and machine
learning
Price: Free
Anaconda Installation
1. Download the Anaconda installer.
3. Click Next.
4. Read the licensing terms and click I Agree.
5. It is recommended that you install for Just Me, which will install Anaconda
Distribution to just the current user account. Only select an install for All
Users if you need to install for all users’ accounts on the computer (which
requires Windows Administrator privileges).
6. Click Next.
7. Select a destination folder to install Anaconda and click Next. Install
Anaconda to a directory path that does not contain spaces or unicode
characters.
9. Click Install. If you want to watch the packages Anaconda is installing, click Show
Details.
12. If you wish to read more about Anaconda.org and how to get started with
Anaconda, check the boxes “Anaconda Distribution Tutorial” and “Learn more about
Anaconda”. Click the Finish button.