0% found this document useful (0 votes)
4 views15 pages

Introduction To Python

Python is an interpreted, object-oriented, high-level programming language used for various applications including web development, data analytics, and machine learning. It was invented by Guido van Rossum in the early 90s and is known for its ease of use and expressiveness. The document also covers installation instructions for Python and Jupyter Notebook, as well as using Google Colab for executing Python code online.

Uploaded by

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

Introduction To Python

Python is an interpreted, object-oriented, high-level programming language used for various applications including web development, data analytics, and machine learning. It was invented by Guido van Rossum in the early 90s and is known for its ease of use and expressiveness. The document also covers installation instructions for Python and Jupyter Notebook, as well as using Google Colab for executing Python code online.

Uploaded by

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

Introduction to

Python

By Faizan Irshad
What is Python?
• Python is an interpreted, object-oriented, high-level
programming language with dynamic semantics.

• Python can be used:


o To create web applications and websites.
o For software development.
o Alongside software to create workflows.
o To connect database systems. It can also read and modify files.
o To handle big data, perform data analytics and data visualization.
o Python can be used for developing Machine Learning models.
Python History
• Invented in the Netherlands, early 90s by Guido van Rossum
• Guido Van Rossum was fan of 'Monty Python's Flying
Circus', this is a famous TV show in Netherlands
Python is Easy & Expressive
Python allows you to focus on the solution rather than the syntax
Python is Open Source
Python is High level Language
Python is Object Oriented Language
• Object-oriented programming uses statements to change a program's state. It focuses
on describing how a program should operate. Examples are C, C++, Java, Go, Ruby and
Python.

• This stands in contrast to declarative programming, which focuses on what the


computer program should accomplish, without specifying how. Examples are SQL and
XQuery.

• Object oriented language uses the concept of objects and classes. A class can be
thought of as a 'blueprint' for objects. These can have their own attributes
(characteristics they possess), and methods (actions they perform).

An example of a class is the class Dog. Dogs usually have a name and age; these are instance
attributes. Dogs can also bark; this is a method. When you talk about a specific dog, you would have
an object in programming: an object is an representation of a class. So a dog Ozzy, for example,
belongs to the class Dog. His attributes are name = 'Ozzy' and age = '2'. A different dog will have
different attributes.
Python is portable
Extensible & embeddable
Python is easily extensible with C/C++/Java code, and easily embeddable in
applications.
It is also a scripting language so can be used as scripts in other programs.
Python is Interpreted Language
A compiled language is converted into machine code so that the processor can execute it. An interpreted
language is a language in which the implementations execute instructions directly without earlier compiling
a program into machine language.
Installing Python & Jupytor Notebook
Installing Python
• https://www.python.org/
• From downloads, download latest available python version for windows
• Click downloaded file to install

Installing Anaconda
• Download Anaconda from https://www.anaconda.com/
• Click downloaded file to install> Be patient, it will take much time.

Launch Anaconda Navigator and launch Notebook from therein.. and you are good to
go. Jupytor Notebook will appear in your start panel.
Using Jupytor Notebook through
Goolge Colab
Colaboratory, or “Colab” for short, is a product from Google Research. Colab allows
anybody to write and execute arbitrary python code through the browser.
Colab is a hosted Jupyter notebook service that requires no setup to use, while
providing access free of charge to computing resources including GPUs.
https://colab.google/

You just need gmail account to access google colab. Colab notebooks are stored in
Google Drive.
Thank You!

You might also like