PWP Exp1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Latthe Education Society’s Polytechnic Sangli

Department of Computer Engineering

Programming with Python (PWP 22616)


Experiment NO 01

Title:- Install and configure Python IDE.


IX. System Resources
Sr no Name Of Resource Specification
1 Computer System with Broad Intel Pentium Dual Core
Specification
2 Operating System Software Windows 7 Ultimate 32 bit
3 Any Other Resource Software PyCharm Community Edition 2017.3.7

X. Program Code.
1. Install PyCharm Community Edition 2017.3.7(32 Bit)
XI. Practical Related Questions
1. Write step to installing Python on Window.
Ans:-
Step1:- Download Latest Version from http://www.Python.Org/downloads
(Latest Version Python.3.7.1)
Step2:- Open the Python 3.7.1.Version pack Double Click it to start installation and
installation windows will be open.
Step3:- Click on next install now for installation and then setup progress windows will be
opened.
Step4:- After Complete the Installation, Click on Close Button.
2. State IDEL in Python.

Ans:- IDLE is Python’s Integrated Development and Learning Environment.

IDLE has the following features:

 coded in 100% pure Python, using GUI toolkit


 cross-platform: works mostly the same on Windows, Unix, and macOS
 Python shell window (interactive interpreter) with colorizing of code input,
output, and error messages
 multi-window text editor with multiple undo, Python colorizing, smart indent,
call tips, auto completion, and other features
 search within any window, replace within editor windows, and search through
multiple files (grep)
 debugger with persistent breakpoints, stepping, and viewing of global and local
namespaces
 configuration, browsers, and other dialogs

3. List key Features of Python.


Ans:-

1) Easy to Learn and Use


Python is easy to learn and use. It is developer-friendly and high level programming
language.
2) Expressive Language
Python language is more expressive means that it is more understandable and readable.
3) Interpreted Language
Python is an interpreted language i.e. interpreter executes the code line by line at a time.
This makes debugging easy and thus suitable for beginners.
4) Cross-platform Language
Python can run equally on different platforms such as Windows, Linux, Unix and
Macintosh etc. So, we can say that Python is a portable language.
5) Free and Open Source
Python language is freely available at offical web address.The source-code is also
available. Therefore it is open source.
6) Object-Oriented Language
Python supports object oriented language and concepts of classes and objects come into
existence.
7) Extensible
It implies that other languages such as C/C++ can be used to compile the code and thus
it can be used further in our python code.
8) Large Standard Library
Python has a large and broad library and prvides rich set of module and functions for
rapid application development.
9) GUI Programming Support
Graphical user interfaces can be developed using Python.
10) Integrated
It can be easily integrated with languages like C, C++, JAVA etc.

4. Explain Python Path.

Ans:-
Augment the default search path for module files. The format is the same as the shell’s
PATH: one or more directory pathnames separated by os.pathsep (e.g. colons on Unix or
semicolons on Windows). Non-existent directories are silently ignored.
In addition to normal directories, individual PYTHONPATH entries may refer to zipfiles
containing pure Python modules (in either source or compiled form). Extension
modules cannot be imported from zipfiles.
The default search path is installation dependent, but generally begins with
prefix/lib/pythonversion (see PYTHONHOME above). It is always appended to
PYTHONPATH.
An additional directory will be inserted in the search path in front of PYTHONPATH as
described above under Interface options. The search path can be manipulated from
within a Python program as the variable sys.path.

5. State the use of pep and pip

Ans:- PEP stands for Python Enhancement Proposal. A PEP is a design document
providing information to the Python community, or describing a new feature for Python
or its processes or environment. The PEP should provide a concise technical
specification of the feature and a rationale for the feature.

We intend PEPs to be the primary mechanisms for proposing major new features, for
collecting community input on an issue, and for documenting the design decisions that
have gone into Python. The PEP author is responsible for building consensus within the
community and documenting dissenting opinions.

Because the PEPs are maintained as text files in a versioned repository, their revision
history is the historical record of the feature proposal
Pip:- pip is a package manager for Python. That means it’s a tool that allows you to
install and manage additional libraries and dependencies that are not distributed as part
of the standard library.

Package management is so important that pip has been included with the Python
installer since versions 3.4 for Python 3 and 2.7.9 for Python 2, and it’s used by many
Python projects, which makes it an essential tool for every Pythonista.

The concept of a package manager might be familiar to you if you are coming from
other languages. JavaScript uses npm for package management, Ruby uses gem, and
.NET use NuGet. In Python, pip has become the standard package manager.

You might also like