SlideShare a Scribd company logo
Introduction
to
Python
Readable. Simple. Dynamic. Fast.
Powerful. In-demand.
Spotle.ai Study Material
Spotle.ai/Learn
Instructors
Mousum Dutta
Chief Data Scientist, Spotle.ai
IIT Kharagpur
Spotle.ai Study Material
Spotle.ai/Learn
Spotle.ai Study Material
Spotle.ai/Learn
The demand for Python is growing….
Machine
Learning
Data Analysis
Python has
been the
fastest growing
language,
globally, over
the last few
years, fuelled
mostly by its
usage in AI and
Data Science
Source: stackoverflow.com
Spotle.ai Study Material
Spotle.ai/Learn
The demand for Python is growing….
Machine
Learning
Data Analysis
The average
salary of a
Python
developer in
India is
4.8 lacs per
annum
Source: stackoverflow.com
The case for Python
✓ High Usability
✓ Flexibility – Python allows
easy cross-app integration
and also inter-operability
with other programming
languages
✓ Readable and simple –
Easier to learn, code and
debug
✓ Large standardised library
simplifying complex tasks
✓ Interactive mode with the
integrated, easy to use
development environment
Jupyter
Web Development
• Core Python Packages: Flask, Django
Data Science
• Core Python Packages: Pandas, Matplotlib, StatsModels
Text Processing
Core Python Packages: NLTK, TextBlob, Spacy
Artificial Intelligence
• Core Python Packages: SciKit – Learn, Tensorflow, Keras
Scientific and Numeric Computing
• Core Python Packages: NumPy
Python Use Cases and Libraries
Used By:
Spotle.ai Study Material
Spotle.ai/Learn
Python 2 vs Python 3
Python 2 Python 3
Legacy
Though used in 63% of software projects till
2017-18, its adoption is declining. As of 2019, the
latest version of Python 2, Python 2.7 is officially
retired
Way Ahead
Uptick in adoption. New libraries are being for
Python3
ASCII
Strings are stored as ASCII by default
UNICODE
Strings are stored as UNICODE by default
3/2 = 2
In Python 2, 3/2 is integer division or floor division.
So Print 3/2 will print 1
3/2 = 1.5
In Python 3, 3/2 returns the expected 1.5. So Print
(3/2) will print1.5
Print is a Statement
Print “Welcome to Spotle.ai”
Print is a Function
Print (“Welcome to Spotle.ai”)
Spotle.ai Study Material
Spotle.ai/Learn
6
Spotle.ai Study Material
Spotle.ai/Learn
Python Basics
Compiler vs Python Interpreter
Basis Compiler Interpreter
Input It takes an entire program at a
time
It takes a single line of code or
instruction at a time
Output It generates intermediate object
code
It does not produce any intermediate
object code
Working
mechanism

The compilation is done before
execution
Compilation and execution take
place simultaneously
Speed Comparatively faster Slower
Memory
 Memory requirement is more due
to the creation of object code
It requires less memory as it does
not create intermediate object code
Errors
 Display all errors after
compilation, all at the same time
Displays error of each line one by
one
Error detection Difficult Easier comparatively
Spotle.ai Study Material
Spotle.ai/Learn
8
https://techdifferences.com/difference-between-compiler-and-interpreter.html
In Python, indentation is not just for
making it look pretty
In Python, indentation has well defined meaning. Indentation is used to
define block of codes. See the below example.
If (1==1)
print (“All is well”)
Else
print (“End of the world”)
print (“Bye Bye”)
If (1==1)
print (“All is well”)
Else
print (“End of the world”)
print (“Bye Bye”)
This will print
All is well
Bye Bye
The above piece of code will
consider print (“Bye Bye”) outside
if-else
This will print
All is well
But will not print Bye Bye
The above piece of code will
consider print (“Bye Bye”) under
else condition
Spotle.ai Study Material
Spotle.ai/Learn
9
In Python, everything is an object
Python is an object oriented language where everything is an object. Unlike
Ruby, python objects are not necessarily sub-classable or have methods.
They are objects in the sense they can be passed in functions or assigned
to variables.
class Myself
def self_love(self):
Print(“I am awesome”)
Me = Myself()
Me.self_love()
Here Myself is a class, the function self_love is called a method of Myself
and Me is an object of type Myself.
Spotle.ai Study Material
Spotle.ai/Learn
10
Data Types and Operators in Python
Python supports 5 standard data types.
Numbers
String
List
Tuple
Dictionary
Python supports a wide variety of operators.
✓ Arithmetic Operators
✓ Comparison (Relational) Operators
✓ Assignment Operators
✓ Logical Operators
✓ Bitwise Operators
✓ Membership Operators
✓ Identity Operators
Spotle.ai Study Material
Spotle.ai/Learn
11
Setting up Python
Spotle.ai Study Material
Spotle.ai/Learn
12
This video will help you setup Python Environment in your computer and write your
first Python program.
Spotle.ai Study Material
Spotle.ai/Learn
Certificate Masterclass In
Python Fundamentals
with Hands-ons
Certificate Masterclass in Python – What
will you learn?
✓ Go from an absolute beginner to a confident programmer level with complete
understanding of Python basics
✓ Master the latest version of Python, Python 3 in 6 weeks
✓ Get adequate hands-on exercises to practise all your Python concepts.
✓ Cover fundamentals and basic libraries including Classes and objects,
Numbers, Strings, Basic Operators 
✓ Practise Python through comprehensive quizzes with detailed notes to help you
understand solutions
✓ Build your foundation for more advanced programs including Data Science,
Text Processing, Machine Learning and Deep Learning using Python
✓ Understand career paths in Python and how to prepare for career opportunities
Spotle.ai Study Material
Spotle.ai/Learn
14
Learn Python In The Most Intense Course Ever: https://spotle.ai/learn/python
20 Interactive Videos with
illustrative examples
24/7 Access to chat and
career support
4
Live Classes With
Instructors to learn
concepts first-hand
20 Quizzes to test your
learning on the go
7 Hours Of Lecture
20 Practice sessions and
real-life projects
Learn at your own pace with integrated
instructor support
Interactive Videos with
illustrative examples
Quizzes to test your
learning on the go
Hours Of Lecture
Live Classes With
Instructors to learn
concepts first-hand
Practice sessions and
real-life projects
Access to chat and
career support
15
Spotle.ai Study Material
Spotle.ai/Learn
Spotle.ai Study Material
Spotle.ai/Learn
16
Your Take - aways
✓ Certificate Of Completion.
✓ Integrated live projects and performance based internship.
✓ Membership of Spotle AI Alumni club with priority
access to courses, events and mentoring.
✓ Optimized career path fitment through
AI.
✓ Personalised career
guidance and assistance.
Sign up for the Masterclass: https://spotle.ai/learn/python
Spotle.ai Study Material
Spotle.ai/Learn
Spotle.ai Study Material
Spotle.ai/Learn

More Related Content

What's hot

Python webinar 4th june
Python webinar 4th junePython webinar 4th june
Python webinar 4th june
Edureka!
 
Introduction To Data Science
Introduction To Data ScienceIntroduction To Data Science
Introduction To Data Science
Spotle.ai
 
Cheat sheets for data scientists
Cheat sheets for data scientistsCheat sheets for data scientists
Cheat sheets for data scientists
Ajay Ohri
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
Joshua Robinson
 
How To Become a Data Scientist in Iran Marketplace
How To Become a Data Scientist in Iran Marketplace How To Become a Data Scientist in Iran Marketplace
How To Become a Data Scientist in Iran Marketplace
Mohamadreza Mohtat
 
How to Become a Data Scientist
How to Become a Data ScientistHow to Become a Data Scientist
How to Become a Data Scientist
ryanorban
 
Data Science Salon Miami Presentation
Data Science Salon Miami PresentationData Science Salon Miami Presentation
Data Science Salon Miami Presentation
Greg Werner
 
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...
Armando Vieira
 
Self Study Business Approach to DS_01022022.docx
Self Study Business Approach to DS_01022022.docxSelf Study Business Approach to DS_01022022.docx
Self Study Business Approach to DS_01022022.docx
Shanmugasundaram M
 
Data Science, what even?!
Data Science, what even?!Data Science, what even?!
Data Science, what even?!
David Coallier
 
From SQL to Python - A Beginner's Guide to Making the Switch
From SQL to Python - A Beginner's Guide to Making the SwitchFrom SQL to Python - A Beginner's Guide to Making the Switch
From SQL to Python - A Beginner's Guide to Making the Switch
Rachel Berryman
 
Data Science, what even...
Data Science, what even...Data Science, what even...
Data Science, what even...
David Coallier
 
Mahout and Distributed Machine Learning 101
Mahout and Distributed Machine Learning 101Mahout and Distributed Machine Learning 101
Mahout and Distributed Machine Learning 101
John Ternent
 
Data Science at Scale @ barricade.io
Data Science at Scale @ barricade.ioData Science at Scale @ barricade.io
Data Science at Scale @ barricade.io
David Coallier
 
Data science presentation - Management career institute
Data science presentation - Management career instituteData science presentation - Management career institute
Data science presentation - Management career institute
PoojaPatidar11
 
Machine learning
Machine learningMachine learning
Machine learning
Navdeep Asteya
 
Data Science using Python
Data Science using PythonData Science using Python
Data Science using Python
ShapeMySkills Pvt Ltd
 
Data Science : Make Smarter Business Decisions
Data Science : Make Smarter Business DecisionsData Science : Make Smarter Business Decisions
Data Science : Make Smarter Business Decisions
Edureka!
 
The path to be a data scientist
The path to be a data scientistThe path to be a data scientist
The path to be a data scientist
Poo Kuan Hoong
 
what is data science
 what is data science what is data science
what is data science
Crampete
 

What's hot (20)

Python webinar 4th june
Python webinar 4th junePython webinar 4th june
Python webinar 4th june
 
Introduction To Data Science
Introduction To Data ScienceIntroduction To Data Science
Introduction To Data Science
 
Cheat sheets for data scientists
Cheat sheets for data scientistsCheat sheets for data scientists
Cheat sheets for data scientists
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
How To Become a Data Scientist in Iran Marketplace
How To Become a Data Scientist in Iran Marketplace How To Become a Data Scientist in Iran Marketplace
How To Become a Data Scientist in Iran Marketplace
 
How to Become a Data Scientist
How to Become a Data ScientistHow to Become a Data Scientist
How to Become a Data Scientist
 
Data Science Salon Miami Presentation
Data Science Salon Miami PresentationData Science Salon Miami Presentation
Data Science Salon Miami Presentation
 
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...
 
Self Study Business Approach to DS_01022022.docx
Self Study Business Approach to DS_01022022.docxSelf Study Business Approach to DS_01022022.docx
Self Study Business Approach to DS_01022022.docx
 
Data Science, what even?!
Data Science, what even?!Data Science, what even?!
Data Science, what even?!
 
From SQL to Python - A Beginner's Guide to Making the Switch
From SQL to Python - A Beginner's Guide to Making the SwitchFrom SQL to Python - A Beginner's Guide to Making the Switch
From SQL to Python - A Beginner's Guide to Making the Switch
 
Data Science, what even...
Data Science, what even...Data Science, what even...
Data Science, what even...
 
Mahout and Distributed Machine Learning 101
Mahout and Distributed Machine Learning 101Mahout and Distributed Machine Learning 101
Mahout and Distributed Machine Learning 101
 
Data Science at Scale @ barricade.io
Data Science at Scale @ barricade.ioData Science at Scale @ barricade.io
Data Science at Scale @ barricade.io
 
Data science presentation - Management career institute
Data science presentation - Management career instituteData science presentation - Management career institute
Data science presentation - Management career institute
 
Machine learning
Machine learningMachine learning
Machine learning
 
Data Science using Python
Data Science using PythonData Science using Python
Data Science using Python
 
Data Science : Make Smarter Business Decisions
Data Science : Make Smarter Business DecisionsData Science : Make Smarter Business Decisions
Data Science : Make Smarter Business Decisions
 
The path to be a data scientist
The path to be a data scientistThe path to be a data scientist
The path to be a data scientist
 
what is data science
 what is data science what is data science
what is data science
 

Similar to Introduction to Python

Python Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PunePython Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech Pune
Ethan's Tech
 
Python
PythonPython
Python
onlinetraining3
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
SudhanshiBakre1
 
5 Effective Tips to Learn Python Fast.pptx
5 Effective Tips to Learn Python Fast.pptx5 Effective Tips to Learn Python Fast.pptx
5 Effective Tips to Learn Python Fast.pptx
Attitude Tally Academy
 
python Certification Training in marthahalli
python Certification Training in marthahallipython Certification Training in marthahalli
python Certification Training in marthahalli
MUDDUKRISHNA14
 
Python content
Python contentPython content
Python content
MUDDUKRISHNA14
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
Python course task 10 guruprasanth.s
Python course task 10 guruprasanth.sPython course task 10 guruprasanth.s
Python course task 10 guruprasanth.s
GURUPRASANTH33
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Py4 inf 01-intro
Py4 inf 01-introPy4 inf 01-intro
Py4 inf 01-intro
Ishaq Ali
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
guobichrng
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent Decision
Mindfire LLC
 
python training.docx
python training.docxpython training.docx
python training.docx
AkshitaYadav49
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
hemantmohite6
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
Kirti Verma
 
Python
Python Python
Python
Edureka!
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
Shivam Gupta
 
Introduction-to-Python.pptx
Introduction-to-Python.pptxIntroduction-to-Python.pptx
Introduction-to-Python.pptx
AyushDey1
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
MuhammadBakri13
 
What Is The BEST WAY TO LEARN PYTHON In 2023.pptx
What Is The BEST WAY TO LEARN PYTHON In 2023.pptxWhat Is The BEST WAY TO LEARN PYTHON In 2023.pptx
What Is The BEST WAY TO LEARN PYTHON In 2023.pptx
calltutors
 

Similar to Introduction to Python (20)

Python Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PunePython Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech Pune
 
Python
PythonPython
Python
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
5 Effective Tips to Learn Python Fast.pptx
5 Effective Tips to Learn Python Fast.pptx5 Effective Tips to Learn Python Fast.pptx
5 Effective Tips to Learn Python Fast.pptx
 
python Certification Training in marthahalli
python Certification Training in marthahallipython Certification Training in marthahalli
python Certification Training in marthahalli
 
Python content
Python contentPython content
Python content
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
 
Python course task 10 guruprasanth.s
Python course task 10 guruprasanth.sPython course task 10 guruprasanth.s
Python course task 10 guruprasanth.s
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Py4 inf 01-intro
Py4 inf 01-introPy4 inf 01-intro
Py4 inf 01-intro
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent Decision
 
python training.docx
python training.docxpython training.docx
python training.docx
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Python
Python Python
Python
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
Introduction-to-Python.pptx
Introduction-to-Python.pptxIntroduction-to-Python.pptx
Introduction-to-Python.pptx
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
What Is The BEST WAY TO LEARN PYTHON In 2023.pptx
What Is The BEST WAY TO LEARN PYTHON In 2023.pptxWhat Is The BEST WAY TO LEARN PYTHON In 2023.pptx
What Is The BEST WAY TO LEARN PYTHON In 2023.pptx
 

More from Spotle.ai

Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...
Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...
Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...
Spotle.ai
 
Spotle AI-thon - AI For Good Business Plan Showcase - Cummins College
Spotle AI-thon - AI For Good Business Plan Showcase - Cummins CollegeSpotle AI-thon - AI For Good Business Plan Showcase - Cummins College
Spotle AI-thon - AI For Good Business Plan Showcase - Cummins College
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer...
 Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer... Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...
Spotle.ai
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar...
 Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar... Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar...
Spotle.ai
 
Artificial intelligence in fintech
Artificial intelligence in fintechArtificial intelligence in fintech
Artificial intelligence in fintech
Spotle.ai
 
Semi-supervised Machine Learning
Semi-supervised Machine LearningSemi-supervised Machine Learning
Semi-supervised Machine Learning
Spotle.ai
 
Basics of Reinforcement Learning
Basics of Reinforcement LearningBasics of Reinforcement Learning
Basics of Reinforcement Learning
Spotle.ai
 
Tableau And Data Visualization - Get Started
Tableau And Data Visualization - Get StartedTableau And Data Visualization - Get Started
Tableau And Data Visualization - Get Started
Spotle.ai
 
Artificial Intelligence in FinTech
Artificial Intelligence in FinTechArtificial Intelligence in FinTech
Artificial Intelligence in FinTech
Spotle.ai
 
Supervised and Unsupervised Machine Learning
Supervised and Unsupervised Machine LearningSupervised and Unsupervised Machine Learning
Supervised and Unsupervised Machine Learning
Spotle.ai
 
Growing-up With AI
Growing-up With AIGrowing-up With AI
Growing-up With AI
Spotle.ai
 
AI And Cyber-security Threats
AI And Cyber-security ThreatsAI And Cyber-security Threats
AI And Cyber-security Threats
Spotle.ai
 
Robotic Process Automation With Blue Prism
Robotic Process Automation With Blue PrismRobotic Process Automation With Blue Prism
Robotic Process Automation With Blue Prism
Spotle.ai
 

More from Spotle.ai (20)

Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...
Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...
Spotle AI-thon - AI For Good Business Plan Showcase - Team IIM Indore - AI Ro...
 
Spotle AI-thon - AI For Good Business Plan Showcase - Cummins College
Spotle AI-thon - AI For Good Business Plan Showcase - Cummins CollegeSpotle AI-thon - AI For Good Business Plan Showcase - Cummins College
Spotle AI-thon - AI For Good Business Plan Showcase - Cummins College
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Elit...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India- Ankur chat...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team La c...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Temp...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer...
 Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer... Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Zer...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Shivam Gi...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Cyber Pun...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Tech Owls...
 
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar...
 Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar... Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar...
Spotle AI-thon Top 10 Showcase - Analysing Mental Health Of India - Team Jar...
 
Artificial intelligence in fintech
Artificial intelligence in fintechArtificial intelligence in fintech
Artificial intelligence in fintech
 
Semi-supervised Machine Learning
Semi-supervised Machine LearningSemi-supervised Machine Learning
Semi-supervised Machine Learning
 
Basics of Reinforcement Learning
Basics of Reinforcement LearningBasics of Reinforcement Learning
Basics of Reinforcement Learning
 
Tableau And Data Visualization - Get Started
Tableau And Data Visualization - Get StartedTableau And Data Visualization - Get Started
Tableau And Data Visualization - Get Started
 
Artificial Intelligence in FinTech
Artificial Intelligence in FinTechArtificial Intelligence in FinTech
Artificial Intelligence in FinTech
 
Supervised and Unsupervised Machine Learning
Supervised and Unsupervised Machine LearningSupervised and Unsupervised Machine Learning
Supervised and Unsupervised Machine Learning
 
Growing-up With AI
Growing-up With AIGrowing-up With AI
Growing-up With AI
 
AI And Cyber-security Threats
AI And Cyber-security ThreatsAI And Cyber-security Threats
AI And Cyber-security Threats
 
Robotic Process Automation With Blue Prism
Robotic Process Automation With Blue PrismRobotic Process Automation With Blue Prism
Robotic Process Automation With Blue Prism
 

Recently uploaded

AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
Federico Razzoli
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 

Recently uploaded (20)

AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 

Introduction to Python

  • 1. Introduction to Python Readable. Simple. Dynamic. Fast. Powerful. In-demand. Spotle.ai Study Material Spotle.ai/Learn
  • 2. Instructors Mousum Dutta Chief Data Scientist, Spotle.ai IIT Kharagpur Spotle.ai Study Material Spotle.ai/Learn
  • 3. Spotle.ai Study Material Spotle.ai/Learn The demand for Python is growing…. Machine Learning Data Analysis Python has been the fastest growing language, globally, over the last few years, fuelled mostly by its usage in AI and Data Science Source: stackoverflow.com
  • 4. Spotle.ai Study Material Spotle.ai/Learn The demand for Python is growing…. Machine Learning Data Analysis The average salary of a Python developer in India is 4.8 lacs per annum Source: stackoverflow.com
  • 5. The case for Python ✓ High Usability ✓ Flexibility – Python allows easy cross-app integration and also inter-operability with other programming languages ✓ Readable and simple – Easier to learn, code and debug ✓ Large standardised library simplifying complex tasks ✓ Interactive mode with the integrated, easy to use development environment Jupyter Web Development • Core Python Packages: Flask, Django Data Science • Core Python Packages: Pandas, Matplotlib, StatsModels Text Processing Core Python Packages: NLTK, TextBlob, Spacy Artificial Intelligence • Core Python Packages: SciKit – Learn, Tensorflow, Keras Scientific and Numeric Computing • Core Python Packages: NumPy Python Use Cases and Libraries Used By: Spotle.ai Study Material Spotle.ai/Learn
  • 6. Python 2 vs Python 3 Python 2 Python 3 Legacy Though used in 63% of software projects till 2017-18, its adoption is declining. As of 2019, the latest version of Python 2, Python 2.7 is officially retired Way Ahead Uptick in adoption. New libraries are being for Python3 ASCII Strings are stored as ASCII by default UNICODE Strings are stored as UNICODE by default 3/2 = 2 In Python 2, 3/2 is integer division or floor division. So Print 3/2 will print 1 3/2 = 1.5 In Python 3, 3/2 returns the expected 1.5. So Print (3/2) will print1.5 Print is a Statement Print “Welcome to Spotle.ai” Print is a Function Print (“Welcome to Spotle.ai”) Spotle.ai Study Material Spotle.ai/Learn 6
  • 8. Compiler vs Python Interpreter Basis Compiler Interpreter Input It takes an entire program at a time It takes a single line of code or instruction at a time Output It generates intermediate object code It does not produce any intermediate object code Working mechanism
 The compilation is done before execution Compilation and execution take place simultaneously Speed Comparatively faster Slower Memory
 Memory requirement is more due to the creation of object code It requires less memory as it does not create intermediate object code Errors
 Display all errors after compilation, all at the same time Displays error of each line one by one Error detection Difficult Easier comparatively Spotle.ai Study Material Spotle.ai/Learn 8 https://techdifferences.com/difference-between-compiler-and-interpreter.html
  • 9. In Python, indentation is not just for making it look pretty In Python, indentation has well defined meaning. Indentation is used to define block of codes. See the below example. If (1==1) print (“All is well”) Else print (“End of the world”) print (“Bye Bye”) If (1==1) print (“All is well”) Else print (“End of the world”) print (“Bye Bye”) This will print All is well Bye Bye The above piece of code will consider print (“Bye Bye”) outside if-else This will print All is well But will not print Bye Bye The above piece of code will consider print (“Bye Bye”) under else condition Spotle.ai Study Material Spotle.ai/Learn 9
  • 10. In Python, everything is an object Python is an object oriented language where everything is an object. Unlike Ruby, python objects are not necessarily sub-classable or have methods. They are objects in the sense they can be passed in functions or assigned to variables. class Myself def self_love(self): Print(“I am awesome”) Me = Myself() Me.self_love() Here Myself is a class, the function self_love is called a method of Myself and Me is an object of type Myself. Spotle.ai Study Material Spotle.ai/Learn 10
  • 11. Data Types and Operators in Python Python supports 5 standard data types. Numbers String List Tuple Dictionary Python supports a wide variety of operators. ✓ Arithmetic Operators ✓ Comparison (Relational) Operators ✓ Assignment Operators ✓ Logical Operators ✓ Bitwise Operators ✓ Membership Operators ✓ Identity Operators Spotle.ai Study Material Spotle.ai/Learn 11
  • 12. Setting up Python Spotle.ai Study Material Spotle.ai/Learn 12 This video will help you setup Python Environment in your computer and write your first Python program.
  • 13. Spotle.ai Study Material Spotle.ai/Learn Certificate Masterclass In Python Fundamentals with Hands-ons
  • 14. Certificate Masterclass in Python – What will you learn? ✓ Go from an absolute beginner to a confident programmer level with complete understanding of Python basics ✓ Master the latest version of Python, Python 3 in 6 weeks ✓ Get adequate hands-on exercises to practise all your Python concepts. ✓ Cover fundamentals and basic libraries including Classes and objects, Numbers, Strings, Basic Operators  ✓ Practise Python through comprehensive quizzes with detailed notes to help you understand solutions ✓ Build your foundation for more advanced programs including Data Science, Text Processing, Machine Learning and Deep Learning using Python ✓ Understand career paths in Python and how to prepare for career opportunities Spotle.ai Study Material Spotle.ai/Learn 14
  • 15. Learn Python In The Most Intense Course Ever: https://spotle.ai/learn/python 20 Interactive Videos with illustrative examples 24/7 Access to chat and career support 4 Live Classes With Instructors to learn concepts first-hand 20 Quizzes to test your learning on the go 7 Hours Of Lecture 20 Practice sessions and real-life projects Learn at your own pace with integrated instructor support Interactive Videos with illustrative examples Quizzes to test your learning on the go Hours Of Lecture Live Classes With Instructors to learn concepts first-hand Practice sessions and real-life projects Access to chat and career support 15 Spotle.ai Study Material Spotle.ai/Learn
  • 16. Spotle.ai Study Material Spotle.ai/Learn 16 Your Take - aways ✓ Certificate Of Completion. ✓ Integrated live projects and performance based internship. ✓ Membership of Spotle AI Alumni club with priority access to courses, events and mentoring. ✓ Optimized career path fitment through AI. ✓ Personalised career guidance and assistance. Sign up for the Masterclass: https://spotle.ai/learn/python Spotle.ai Study Material Spotle.ai/Learn Spotle.ai Study Material Spotle.ai/Learn