Uploaded on May 20, 2021
PPT on A Brief Guide on Python Programming Language.
A Brief Guide on Python Programming Language.
A Brief Guide on
Python Programming
Language
Introduction
• Python is a high-level, interpreted, interactive and object-oriented scripting language.
Python is designed to be highly readable.
• It uses English keywords frequently whereas other languages use punctuation, and it has
fewer syntactical constructions than other languages.
Source: www.tutorialspoint.com
Python Overview
• Python is Interpreted − Python is processed at runtime by the interpreter. You do not
need to compile your program before executing it. This is like PERL and PHP.
• Python is Interactive − You can sit at a Python prompt and interact with the interpreter
directly to write your programs.
Source: www.tutorialspoint.com
Python Overview Cont.
• 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
Source: www.tutorialspoint.com
Python Features
• 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.
Source: www.tutorialspoint.com
Python Features Cont.
• 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.
Source: www.tutorialspoint.com
Python Supporting
• It supports functional and structured programming methods as well as OOP.
• It can be used as a scripting language or can be compiled to byte-code for building large
applications.
• It provides very high-level dynamic data types and supports dynamic type checking.
• It supports automatic garbage collection.
Source: www.tutorialspoint.com
Local Environment Setup
• Open a terminal window and type "python" to find out if it is already installed and which version is installed.
– Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, etc.)
– Win 9x/NT/2000
– Macintosh (Intel, PPC, 68K)
– OS/2
– DOS (multiple versions)
– PalmOS
– Nokia mobile phones
– Windows CE
– Acorn/RISC OS
– BeOS
– Amiga
– VMS/OpenVMS
– QNX
– VxWorks
– Psion
Source: www.tutorialspoint.com
Getting Python
• The most up-to-date and current source code, binaries, documentation, news, etc., is
available on the official website of Python https://www.python.org/. The documentation
is available in HTML, PDF, and PostScript formats.
Source: www.tutorialspoint.com
Installing Python
• Unix and Linux Installation. Here are the simple steps to install Python on Unix/Linux
machine.
– Open a Web browser and go to https://www.python.org/downloads/.
– Follow the link to download zipped source code available for Unix/Linux.
– Download and extract files.
– Editing the Modules/Setup file if you want to customize some options.
– run ./configure script
– make
– make install
Source: www.tutorialspoint.com
Python Identifiers
• A Python identifier is a name used to identify a variable, function, class, module or other object. An identifier
starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores and digits
(0 to 9).
Source: www.tutorialspoint.com
Standard Data Types
• Python has various standard data types that are used to define the operations possible on them and the
storage method for each of them. Python has five standard data types −
– Numbers
– String
– List
– Tuple
– Dictionary
Source: www.tutorialspoint.com
Comments