0% found this document useful (0 votes)
39 views18 pages

Harish Internship

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views18 pages

Harish Internship

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Data Science

Presented By:
A.K.HARISH
23555A4401
DATA SCIENCE
GIET

Internship-1
Datascience,
Definition
Python is a high-level, interpreted, interactive
and object-oriented scripting language.

It has fewer syntactic constructions than other languages.


Python is Interpreted: Python is processed at runtime by the
interpreter. No 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 by bundling related properties and
behaviors into individual 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 W W W browsers
to games.
History of Python

Python was developed by Guido van


Rossum in the late eighties and early nineties
of 19th century at the National Research
Institute for Mathematics and Computer
Science in Netherlands
● Python is derived from many other languages, including ABC,
Modula-3, C, C++, ALGOL-68, SmallTalk, UNIX Shell, and
other Scripting languages.
● At the time when he began implementing Python, Guido van
Rossum was also reading the published scripts from
"Monty Python's Flying Circus" (a BBC comedy series, in the
seventies).
● He needed a name that was short, unique, and slightly
mysterious, so, decided to call the language as Python.
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.
● 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 effcient.
● 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.
Who Uses Python Today?
Python Bytecode
● Python uses code modules that are interchangeable instead of a single
long list of instructions
● Python doesn’t convert its code into machine code, something that
hardware can understand.
● It actually converts it into something called bytecode.
● So within python, compilation happens, but it’s just not into a
machine language
● It is into bytecode and this bytecode can’t be understood by
CPU.
● So we need an interpreter called the Python Virtual Machine.
● The P VM executes the bytecode.
How the Python Interpreter Works?
Python Variables
● Variables are containers for storing data values.
● Unlike other programming languages, Python has no command for
declaring a variable.
● A variable is created the moment you first assign a value to it.

• Example:

• x = 10

• y = "cse"
● Python allows you to assign values to multiple variables in one
line:

x, y, z = "Orange", "Banana", "Apple"

● You can assign the same value to multiple variables in one

line: x = y = z = "Orange"

● Variables that are created outside of a function are known as


global variables.
● If you create a variable with the same name inside a function,
this variable will be local, and can only be used inside the
function.
● The global variable with the same name will remain as it
● was, global
You can andawith
create thevariable
global original inside
value.a function usingglobal
keyword.
Thank you

You might also like