SlideShare a Scribd company logo
INTRODUCTION
TO PYTHON
PROGRAMMING
Google (Youtube)
Facebook (Tornado)
Dropbox
Yahoo
NASA
IBM
Mozilla
Quora
Instagram (Django)
Reddit
Search algorithms
Log analysis
Google Data Python Client Library
Google APIs Client Library for Python
Google AdWords API Python Client Library
Machine Learning
Robotics projects
Introduction to Python Programming | InsideAIML
NAME IS BASED ON A BBC
COMEDY SERIES FROM THE 1970S
Monty Python's Flying Circus
Guido van Rossum
December 1989
Scripting
Testing
Web Development
IoT Programming
Data Science
Python is used across domains such as:
Programming is error-prone!
Programming errors are called bugs
The process of tracking them down is called debugging
Easy-to-learn:
Easy-to-read:
Easy-to-maintain:
A broad standard library:
Interactive Mode:
Portable:
Python has few keywords, a simple structure, and a clearly defined syntax.
Python code is more clearly defined and visible to the eyes.
Python's source code is fairly easy to maintain.
Python's bulk of the library is very portable and cross-platform compatible on
....... UNIX, Windows, and Macintosh.
Python has support for an interactive mode that allows interactive testing and
.......debugging of snippets of code.
Python can run on a wide variety of hardware platforms and has the same
........interface on all platforms.
Extendable:
Databases:
GUI Programming:
Scalable:
You can add low-level modules to the Python interpreter. These modules
........enable programmers to add to or customize their tools to be more efficient.
Python provides interfaces to all major commercial databases.
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.
Python provides a better structure and support for large programs than shell
........scripting.
Portability:
Interpret:
Compile:
A property of a program that can run on more than one kind of
........computer.
To execute a program in a high-level language by translating it one
........line at a time.
To translate a program written in a high-level language into a low-level
........language all at once, in preparation for later execution.
Introduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIML
A program is a sequence of instructions that specifies how to
perform a computation.
Input: Get data from the keyboard, a file, or some other device.
Output: Display data on the screen or send data to a file or other
device.
Process:
Math: Perform basic mathematical operations like addition and
multiplication.
Conditional execution: Check for certain conditions and execute
the appropriate code.
Repetition: Perform some action repeatedly, usually with some
variation.
1.
2.
3.
Introduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIML
HTTPS://REPO.ANACONDA.COM/ARCHIVE/
Numbers
1. int (signed integers):
They are often called just integers or int, are positive or negative whole numbers
with no decimal point.
2. long (long integers ):
Also called long, they are integers of unlimited size, written like integers and
followed by an uppercase or lowercase L.
3. float (floating point real values):
Also called floats, they represent real numbers and are written with a decimal
point dividing the integer and fractional parts. Floats may also be in scientific
notation, with E or e indicating the power of 10 (2.5e2 = 2.5 x 102 = 250).
4. complex (complex numbers):
Are of the form a + bJ, where a and b are floats and J (or j) represents the square
root of -1 (which is an imaginary number). The real part of the number is a, and the
imaginary part is b.
1. Variables are reserved memory locations that are used to store values and
are referenced by a name.
Example: Assigning a contact number and referencing it by a contact name
2. Syntax to define a variable is as follows:
variableName = value
Example: phoneNumber = 12345
Variable name should start with an alphabet or underscore (‘_’) followed
by any number of alphabets, digits and underscores
Example: phoneNumber is different from PhoneNumber and phonenumber
Variable name cannot be a reserved name
Example: print, if, for, etc
Variable name cannot contain any special character other than underscore
Variable names are case sensitive.
Int
Float
Boolean
String
List , List comprehension
Tuple
Dictionary
Syntax error
Semantic Error
Runtime Error
While loop – syntax- while(condition):
For loop – syntax – for i in range(0,n):
A collection of built-in modules, each providing different functionality
beyond what is included in the core Python.
import math
math.sqrt(16)
math.factorial(10)
These are called as fruitful functions in python.
Functions are created to make calculations easy to reuse
The general form of a function call is <<function_name>>(<<arguments>>)
An argument is an expression that appears between the parenthesis of a
function call.
The number within parenthesis in the below function call is argument.
abs(-10)
abs(-10.5)
abs(10.5)
Rules to execute a function call:
Evaluate each argument one at a time, working from left to right.
Pass the resulting values into the function.
Executes the function.
The result is obtained.
abs(-7) + abs (3)
pow(abs(-2), round(3.2))
X = input(“Enter an expression:”)
Multiple assignments are also possible
Ex: x,y = 3,4
x,y = map(int, input().split())
def f1():
f1()
• print(‘Inside the function’)
def f1(number):
F1(5)
•print(number)
def add():
result = add()
print(‘After addition:’ result)
print(“Enter 2 numbers to add:”)
a = int(input(“1st number:”))
b = int(input(“2nd number:”))
return(a+b)
num=int(input("Enter the number"))
fact=1
for i in range (1,num+1):
fact=fact*i
print(fact)
fact(num)
def fact(num):
fact=1
for i in range (1,num+1):
fact=fact*i
print(fact)
return fact
num=int(input("Enter the number"))
print(fact(num))
def fact(num):
if(num==1):
return(1)
else:
return num*fact(num-1)
num=int(input("Enter the number"))
Strings are a collection of characters. They are enclosed in
single or double-quotes.
Eg: ‘Climate is pleasant’
‘1234’
‘#@$’
Operators overloading are available in default.
3*’a’ = ‘aaa’
‘a’+’a’ = ‘aa’
‘a’ + 3 will give synatax error (you cannot add a string and a number)
‘a’ + ‘3’ = ‘a3’
‘a’*’a’ will give a syntax error.
Indexing is used to extract individual characters from a string
Indexing in python starts from 0.
S = ‘welcome’
S[0] = ‘w’
S[1] = ‘e’ ….
Slicing is taking subsets from a string.
Lower limit is inclusive where as Upper limit is exclusive.
S=‘welcome’
S[0:2] ??
S[0:] ??
S[:3] ??
S[:] ???
S[0:4]??
‘a’ in ‘ssn’
‘ss’ in ‘ssn’
Replacing a string:
Text = ‘Python is easy’
Text = Text.replace(‘easy’ , ‘easy and powerful’)
Explore the other functions - Assignment
Write a python function to find the max of 3 numbers
Check whether a number is palindrome using function
Check whether a string is palindrome using function
Write a Python function that accepts a string and calculate the
number of upper case letters and lower case letters
Ad

More Related Content

What's hot (20)

Python Basics
Python BasicsPython Basics
Python Basics
Pooja B S
 
Python basic
Python basicPython basic
Python basic
Saifuddin Kaijar
 
Python ppt
Python pptPython ppt
Python ppt
Anush verma
 
Learning Python for Raspberry Pi
Learning Python for Raspberry PiLearning Python for Raspberry Pi
Learning Python for Raspberry Pi
anishgoel
 
Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...
Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...
Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...
MeetupDataScienceRoma
 
Python ppt
Python pptPython ppt
Python ppt
Rohit Verma
 
Python-01| Fundamentals
Python-01| FundamentalsPython-01| Fundamentals
Python-01| Fundamentals
Mohd Sajjad
 
Python quick guide
Python quick guidePython quick guide
Python quick guide
Hasan Bisri
 
File Handling in C Programming
File Handling in C ProgrammingFile Handling in C Programming
File Handling in C Programming
RavindraSalunke3
 
Introduction to Python Part-1
Introduction to Python Part-1Introduction to Python Part-1
Introduction to Python Part-1
Devashish Kumar
 
Basic Concepts in Python
Basic Concepts in PythonBasic Concepts in Python
Basic Concepts in Python
Sumit Satam
 
仕事で使うF#
仕事で使うF#仕事で使うF#
仕事で使うF#
bleis tift
 
Hooking signals and dumping the callstack
Hooking signals and dumping the callstackHooking signals and dumping the callstack
Hooking signals and dumping the callstack
Thierry Gayet
 
Types of pointer in C
Types of pointer in CTypes of pointer in C
Types of pointer in C
rgnikate
 
Theory1&amp;2
Theory1&amp;2Theory1&amp;2
Theory1&amp;2
Dr.M.Karthika parthasarathy
 
PYTHON NOTES
PYTHON NOTESPYTHON NOTES
PYTHON NOTES
Ni
 
Python basics
Python basicsPython basics
Python basics
Bladimir Eusebio Illanes Quispe
 
Void pointer in c
Void pointer in cVoid pointer in c
Void pointer in c
SANDIP MORADIYA
 
Intro to Python Programming Language
Intro to Python Programming LanguageIntro to Python Programming Language
Intro to Python Programming Language
Dipankar Achinta
 
C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)
Saifur Rahman
 
Python Basics
Python BasicsPython Basics
Python Basics
Pooja B S
 
Learning Python for Raspberry Pi
Learning Python for Raspberry PiLearning Python for Raspberry Pi
Learning Python for Raspberry Pi
anishgoel
 
Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...
Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...
Paolo Galeone - Dissecting tf.function to discover auto graph strengths and s...
MeetupDataScienceRoma
 
Python-01| Fundamentals
Python-01| FundamentalsPython-01| Fundamentals
Python-01| Fundamentals
Mohd Sajjad
 
Python quick guide
Python quick guidePython quick guide
Python quick guide
Hasan Bisri
 
File Handling in C Programming
File Handling in C ProgrammingFile Handling in C Programming
File Handling in C Programming
RavindraSalunke3
 
Introduction to Python Part-1
Introduction to Python Part-1Introduction to Python Part-1
Introduction to Python Part-1
Devashish Kumar
 
Basic Concepts in Python
Basic Concepts in PythonBasic Concepts in Python
Basic Concepts in Python
Sumit Satam
 
仕事で使うF#
仕事で使うF#仕事で使うF#
仕事で使うF#
bleis tift
 
Hooking signals and dumping the callstack
Hooking signals and dumping the callstackHooking signals and dumping the callstack
Hooking signals and dumping the callstack
Thierry Gayet
 
Types of pointer in C
Types of pointer in CTypes of pointer in C
Types of pointer in C
rgnikate
 
PYTHON NOTES
PYTHON NOTESPYTHON NOTES
PYTHON NOTES
Ni
 
Intro to Python Programming Language
Intro to Python Programming LanguageIntro to Python Programming Language
Intro to Python Programming Language
Dipankar Achinta
 
C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)
Saifur Rahman
 

Similar to Introduction to Python Programming | InsideAIML (20)

Python Programming Introduction demo.ppt
Python Programming Introduction demo.pptPython Programming Introduction demo.ppt
Python Programming Introduction demo.ppt
JohariNawab
 
PPt Revision of the basics of python1.pptx
PPt Revision of the basics of python1.pptxPPt Revision of the basics of python1.pptx
PPt Revision of the basics of python1.pptx
tcsonline1222
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
DRVaibhavmeshram1
 
Python
PythonPython
Python
Gagandeep Nanda
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
Anonymous9etQKwW
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
RojaPriya
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
kavinilavuG
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
manikamr074
 
Python knowledge ,......................
Python knowledge ,......................Python knowledge ,......................
Python knowledge ,......................
sabith777a
 
Chapter1 python introduction syntax general
Chapter1 python introduction syntax generalChapter1 python introduction syntax general
Chapter1 python introduction syntax general
ssuser77162c
 
Keep it Stupidly Simple Introduce Python
Keep it Stupidly Simple Introduce PythonKeep it Stupidly Simple Introduce Python
Keep it Stupidly Simple Introduce Python
SushJalai
 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
Sasidhar Kothuru
 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
Sasidhar Kothuru
 
Introduction to Python Programming – Part I.pptx
Introduction to Python Programming  –  Part I.pptxIntroduction to Python Programming  –  Part I.pptx
Introduction to Python Programming – Part I.pptx
shakkarikondas
 
Introduction to Python Prog. - Lecture 2
Introduction to Python Prog. - Lecture 2Introduction to Python Prog. - Lecture 2
Introduction to Python Prog. - Lecture 2
Faculty of Computers and Informatics, Suez Canal University, Ismailia, Egypt
 
Sessisgytcfgggggggggggggggggggggggggggggggg
SessisgytcfggggggggggggggggggggggggggggggggSessisgytcfgggggggggggggggggggggggggggggggg
Sessisgytcfgggggggggggggggggggggggggggggggg
pawankamal3
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
KosmikTech1
 
Introduction to learn and Python Interpreter
Introduction to learn and Python InterpreterIntroduction to learn and Python Interpreter
Introduction to learn and Python Interpreter
Alamelu
 
CPPDS Slide.pdf
CPPDS Slide.pdfCPPDS Slide.pdf
CPPDS Slide.pdf
Fadlie Ahdon
 
unit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxunit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptx
usvirat1805
 
Python Programming Introduction demo.ppt
Python Programming Introduction demo.pptPython Programming Introduction demo.ppt
Python Programming Introduction demo.ppt
JohariNawab
 
PPt Revision of the basics of python1.pptx
PPt Revision of the basics of python1.pptxPPt Revision of the basics of python1.pptx
PPt Revision of the basics of python1.pptx
tcsonline1222
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
DRVaibhavmeshram1
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
RojaPriya
 
Python interview questions and answers
Python interview questions and answersPython interview questions and answers
Python interview questions and answers
kavinilavuG
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
manikamr074
 
Python knowledge ,......................
Python knowledge ,......................Python knowledge ,......................
Python knowledge ,......................
sabith777a
 
Chapter1 python introduction syntax general
Chapter1 python introduction syntax generalChapter1 python introduction syntax general
Chapter1 python introduction syntax general
ssuser77162c
 
Keep it Stupidly Simple Introduce Python
Keep it Stupidly Simple Introduce PythonKeep it Stupidly Simple Introduce Python
Keep it Stupidly Simple Introduce Python
SushJalai
 
Introduction to Python Programming – Part I.pptx
Introduction to Python Programming  –  Part I.pptxIntroduction to Python Programming  –  Part I.pptx
Introduction to Python Programming – Part I.pptx
shakkarikondas
 
Sessisgytcfgggggggggggggggggggggggggggggggg
SessisgytcfggggggggggggggggggggggggggggggggSessisgytcfgggggggggggggggggggggggggggggggg
Sessisgytcfgggggggggggggggggggggggggggggggg
pawankamal3
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
KosmikTech1
 
Introduction to learn and Python Interpreter
Introduction to learn and Python InterpreterIntroduction to learn and Python Interpreter
Introduction to learn and Python Interpreter
Alamelu
 
unit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptxunit (1)INTRODUCTION TO PYTHON course.pptx
unit (1)INTRODUCTION TO PYTHON course.pptx
usvirat1805
 
Ad

More from VijaySharma802 (7)

Different Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLDifferent Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIML
VijaySharma802
 
Data Science with Python Lesson 1 - InsideAIML
Data Science with Python Lesson 1 - InsideAIMLData Science with Python Lesson 1 - InsideAIML
Data Science with Python Lesson 1 - InsideAIML
VijaySharma802
 
Data Science with Python Course - InsideAIML
Data Science with Python Course - InsideAIMLData Science with Python Course - InsideAIML
Data Science with Python Course - InsideAIML
VijaySharma802
 
Evolution of Machine Learning - InsideAIML
Evolution of Machine Learning - InsideAIMLEvolution of Machine Learning - InsideAIML
Evolution of Machine Learning - InsideAIML
VijaySharma802
 
An In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIML
An In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIMLAn In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIML
An In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIML
VijaySharma802
 
Meta Pseudo Label - InsideAIML
Meta Pseudo Label - InsideAIMLMeta Pseudo Label - InsideAIML
Meta Pseudo Label - InsideAIML
VijaySharma802
 
Ten trends of IoT in 2020 - InsideAIML
Ten trends of IoT in 2020 - InsideAIMLTen trends of IoT in 2020 - InsideAIML
Ten trends of IoT in 2020 - InsideAIML
VijaySharma802
 
Different Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLDifferent Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIML
VijaySharma802
 
Data Science with Python Lesson 1 - InsideAIML
Data Science with Python Lesson 1 - InsideAIMLData Science with Python Lesson 1 - InsideAIML
Data Science with Python Lesson 1 - InsideAIML
VijaySharma802
 
Data Science with Python Course - InsideAIML
Data Science with Python Course - InsideAIMLData Science with Python Course - InsideAIML
Data Science with Python Course - InsideAIML
VijaySharma802
 
Evolution of Machine Learning - InsideAIML
Evolution of Machine Learning - InsideAIMLEvolution of Machine Learning - InsideAIML
Evolution of Machine Learning - InsideAIML
VijaySharma802
 
An In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIML
An In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIMLAn In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIML
An In-Depth Explanation of Recurrent Neural Networks (RNNs) - InsideAIML
VijaySharma802
 
Meta Pseudo Label - InsideAIML
Meta Pseudo Label - InsideAIMLMeta Pseudo Label - InsideAIML
Meta Pseudo Label - InsideAIML
VijaySharma802
 
Ten trends of IoT in 2020 - InsideAIML
Ten trends of IoT in 2020 - InsideAIMLTen trends of IoT in 2020 - InsideAIML
Ten trends of IoT in 2020 - InsideAIML
VijaySharma802
 
Ad

Recently uploaded (20)

PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
Dr. Nasir Mustafa
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Debunking the Myths behind AI - v1, Carl Dalby
Debunking the Myths behind AI -  v1, Carl DalbyDebunking the Myths behind AI -  v1, Carl Dalby
Debunking the Myths behind AI - v1, Carl Dalby
Association for Project Management
 
Real GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for SuccessReal GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for Success
Mark Soia
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to Manage Purchase Alternatives in Odoo 18
How to Manage Purchase Alternatives in Odoo 18How to Manage Purchase Alternatives in Odoo 18
How to Manage Purchase Alternatives in Odoo 18
Celine George
 
Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...
Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...
Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...
TechSoup
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx   quiz by Ridip HazarikaTHE STG QUIZ GROUP D.pptx   quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
Ridip Hazarika
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
Nguyen Thanh Tu Collection
 
Contact Lens:::: An Overview.pptx.: Optometry
Contact Lens:::: An Overview.pptx.: OptometryContact Lens:::: An Overview.pptx.: Optometry
Contact Lens:::: An Overview.pptx.: Optometry
MushahidRaza8
 
Sugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptxSugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptx
Dr. Renu Jangid
 
03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.
MCH
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
Dr. Nasir Mustafa
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Real GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for SuccessReal GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for Success
Mark Soia
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to Manage Purchase Alternatives in Odoo 18
How to Manage Purchase Alternatives in Odoo 18How to Manage Purchase Alternatives in Odoo 18
How to Manage Purchase Alternatives in Odoo 18
Celine George
 
Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...
Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...
Drive Supporter Growth from Awareness to Advocacy with TechSoup Marketing Ser...
TechSoup
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx   quiz by Ridip HazarikaTHE STG QUIZ GROUP D.pptx   quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
Ridip Hazarika
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
BỘ ĐỀ TUYỂN SINH VÀO LỚP 10 TIẾNG ANH - 25 ĐỀ THI BÁM SÁT CẤU TRÚC MỚI NHẤT, ...
Nguyen Thanh Tu Collection
 
Contact Lens:::: An Overview.pptx.: Optometry
Contact Lens:::: An Overview.pptx.: OptometryContact Lens:::: An Overview.pptx.: Optometry
Contact Lens:::: An Overview.pptx.: Optometry
MushahidRaza8
 
Sugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptxSugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptx
Dr. Renu Jangid
 
03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.
MCH
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 

Introduction to Python Programming | InsideAIML

  • 3. Search algorithms Log analysis Google Data Python Client Library Google APIs Client Library for Python Google AdWords API Python Client Library Machine Learning Robotics projects
  • 5. NAME IS BASED ON A BBC COMEDY SERIES FROM THE 1970S Monty Python's Flying Circus Guido van Rossum December 1989
  • 6. Scripting Testing Web Development IoT Programming Data Science Python is used across domains such as:
  • 7. Programming is error-prone! Programming errors are called bugs The process of tracking them down is called debugging
  • 8. Easy-to-learn: Easy-to-read: Easy-to-maintain: A broad standard library: Interactive Mode: Portable: Python has few keywords, a simple structure, and a clearly defined syntax. Python code is more clearly defined and visible to the eyes. Python's source code is fairly easy to maintain. Python's bulk of the library is very portable and cross-platform compatible on ....... UNIX, Windows, and Macintosh. Python has support for an interactive mode that allows interactive testing and .......debugging of snippets of code. Python can run on a wide variety of hardware platforms and has the same ........interface on all platforms.
  • 9. Extendable: Databases: GUI Programming: Scalable: You can add low-level modules to the Python interpreter. These modules ........enable programmers to add to or customize their tools to be more efficient. Python provides interfaces to all major commercial databases. 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. Python provides a better structure and support for large programs than shell ........scripting.
  • 10. Portability: Interpret: Compile: A property of a program that can run on more than one kind of ........computer. To execute a program in a high-level language by translating it one ........line at a time. To translate a program written in a high-level language into a low-level ........language all at once, in preparation for later execution.
  • 13. A program is a sequence of instructions that specifies how to perform a computation. Input: Get data from the keyboard, a file, or some other device. Output: Display data on the screen or send data to a file or other device. Process: Math: Perform basic mathematical operations like addition and multiplication. Conditional execution: Check for certain conditions and execute the appropriate code. Repetition: Perform some action repeatedly, usually with some variation. 1. 2. 3.
  • 17. Numbers 1. int (signed integers): They are often called just integers or int, are positive or negative whole numbers with no decimal point. 2. long (long integers ): Also called long, they are integers of unlimited size, written like integers and followed by an uppercase or lowercase L. 3. float (floating point real values): Also called floats, they represent real numbers and are written with a decimal point dividing the integer and fractional parts. Floats may also be in scientific notation, with E or e indicating the power of 10 (2.5e2 = 2.5 x 102 = 250). 4. complex (complex numbers): Are of the form a + bJ, where a and b are floats and J (or j) represents the square root of -1 (which is an imaginary number). The real part of the number is a, and the imaginary part is b.
  • 18. 1. Variables are reserved memory locations that are used to store values and are referenced by a name. Example: Assigning a contact number and referencing it by a contact name 2. Syntax to define a variable is as follows: variableName = value Example: phoneNumber = 12345
  • 19. Variable name should start with an alphabet or underscore (‘_’) followed by any number of alphabets, digits and underscores Example: phoneNumber is different from PhoneNumber and phonenumber Variable name cannot be a reserved name Example: print, if, for, etc Variable name cannot contain any special character other than underscore Variable names are case sensitive.
  • 21. List , List comprehension Tuple Dictionary
  • 23. While loop – syntax- while(condition): For loop – syntax – for i in range(0,n):
  • 24. A collection of built-in modules, each providing different functionality beyond what is included in the core Python. import math math.sqrt(16) math.factorial(10) These are called as fruitful functions in python.
  • 25. Functions are created to make calculations easy to reuse The general form of a function call is <<function_name>>(<<arguments>>) An argument is an expression that appears between the parenthesis of a function call. The number within parenthesis in the below function call is argument.
  • 27. Rules to execute a function call: Evaluate each argument one at a time, working from left to right. Pass the resulting values into the function. Executes the function. The result is obtained. abs(-7) + abs (3) pow(abs(-2), round(3.2))
  • 28. X = input(“Enter an expression:”) Multiple assignments are also possible Ex: x,y = 3,4 x,y = map(int, input().split())
  • 31. def add(): result = add() print(‘After addition:’ result) print(“Enter 2 numbers to add:”) a = int(input(“1st number:”)) b = int(input(“2nd number:”)) return(a+b)
  • 32. num=int(input("Enter the number")) fact=1 for i in range (1,num+1): fact=fact*i print(fact)
  • 33. fact(num) def fact(num): fact=1 for i in range (1,num+1): fact=fact*i print(fact) return fact num=int(input("Enter the number"))
  • 35. Strings are a collection of characters. They are enclosed in single or double-quotes. Eg: ‘Climate is pleasant’ ‘1234’ ‘#@$’
  • 36. Operators overloading are available in default. 3*’a’ = ‘aaa’ ‘a’+’a’ = ‘aa’ ‘a’ + 3 will give synatax error (you cannot add a string and a number) ‘a’ + ‘3’ = ‘a3’ ‘a’*’a’ will give a syntax error.
  • 37. Indexing is used to extract individual characters from a string Indexing in python starts from 0. S = ‘welcome’ S[0] = ‘w’ S[1] = ‘e’ ….
  • 38. Slicing is taking subsets from a string. Lower limit is inclusive where as Upper limit is exclusive. S=‘welcome’ S[0:2] ?? S[0:] ?? S[:3] ?? S[:] ??? S[0:4]??
  • 39. ‘a’ in ‘ssn’ ‘ss’ in ‘ssn’ Replacing a string: Text = ‘Python is easy’ Text = Text.replace(‘easy’ , ‘easy and powerful’)
  • 40. Explore the other functions - Assignment
  • 41. Write a python function to find the max of 3 numbers Check whether a number is palindrome using function Check whether a string is palindrome using function
  • 42. Write a Python function that accepts a string and calculate the number of upper case letters and lower case letters