Click here to load reader
Upload
infocampus-bangalore
View
76
Download
1
Embed Size (px)
Citation preview
WHY PYTHON
Have your cake and eat it, too:
Productivity and readable code
VHLLs will gain on system languages
(John Ousterhout)
"Life's better without braces"
(Bruce Eckel)
WHY EVERYONE CHOOSING PYTHON
TRAINING -REASON
There are many good reasons to choose
Python as your primary programming
language. First of all Python is an easy to
learn, powerful programming language.
Furthermore it has efficient high-level data
structures, which allow you to write complex
operations in fewer statements than in C, C++
or Java.
Object-oriented programming is a lot easier
than in languages like Java.
WHAT IS PYTHON TRAINING
Python has become one of the most popular
programming languages among developers
and programmers. They praise it for its clean
syntax and code readability. Python is a
general-purpose high-level programming
language. Python is both object oriented and
imperative and it can be even used in a
functional style as well. Python programs are
portable, i.e. they can be ported to other
operating systems like Windows, Linux, Unix
and Mac OS X, and they can be run on Java
and .NET virtual machines.
With the Python interactive interpreter it is easy to
check Python commands. The Python interpreter
can be invoked by typing the command "python"
without any parameter followed by the "return" key
at the shell prompt:
Python comes back with the following information:
Python 2.5.2 (r252:60911, Oct 5 2008, 19:29:17)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>>
Using the Python Interpreter
Python Internals
Python is both an interpreted and a compiled
language. But calling Python a compiled
language would be misleading. People would
assume that the compiler translates the
Python code into machine language.
Compiler
Definition: A compiler is a computer
program that transforms (translates) source
code of a programming language (the
source language) into another computer
language (the target language). In most
cases compilers are used to transform
source code into executable program, i.e.
they translate code from high-level
programming languages into low (or lower)
level languages, mostly assembly ore
machine code.
Interpreter
Definition: An interpreter is a computer
program that executes instructions written in a
programming language. It can either execute
the source code directly or
translates the source code in a first step into a
more efficient representation and executes this
code
Structuring with Indentation
Most programming languages use certain characters or
keywords to group statements:
begin ... end
do ... done
{ ... }
if ... fi
Python uses a different principle. Programs get structured
through indentation, this means that code blocks are defined by
their indentation. Okay that's what we expect from any program
code, isn't it? Yes, but in the case of Python it's a language
requirement not a matter of style. This principle makes it easier
to read and understand other people's Python code.
List Comprehension
List comprehension is an elegant way to define
and create list in Python. These lists have often
the qualities of sets, but are not in all cases
sets.
List comprehension is a complete substitute for
the lambda function as well as the functions
map(), filter() and reduce(). For most people the
syntax of list comprehension is easier to be
grasped.
No.1 best python training institute
in bangalore(Marathahalli)
Python training in Bangalore offered by
info campus in Bangalore with 100%
placement assistance. Best Python
training in Bangalore with certified
experts. Best Python classes, coaching,
Training Institute, Training Center,
Training Institute In Bangalore
Marathahalli , BTM Layout, Indiranagar
CONTACT DETAILS:
Infocampus Software Training Institute
4th Floor, Above HDFC Bank
Near Kalamandir, ORR Marathahalli
Bangalore-560037
Cont: 080-60505064 / 9738001024
Email : [email protected]