Recommended
PPTX
PPTX
Python Session 11(301025).pptx sample ppt
PPTX
The document discusses for loops in Python. It explains that for loops are us...
PPTX
loopsnote................, b .pptx
PDF
PythonBasics that beginer should know (1).pdf
PDF
Introduction to Python Prog. - Lecture 2
PPTX
Python programming language advanced level model explanation
PPT
Introduction to Python - Part Two
PPTX
Python Interview Questions | Python Interview Questions And Answers | Python ...
PPTX
PPTX
Python programming –part 3
PDF
PPT
PPT
PPT
PDF
Python Programming unit5 (1).pdf
PPT
ppt3-conditionalstatementloopsdictionaryfunctions-240731050730-455ba0fa.ppt
PPTX
PDF
Q-Step_WS_02102019_Practical_introduction_to_Python.pdf
PPTX
python_computer engineering_semester_computer_language.pptx
PPTX
PDF
Introduction-to-Iteration.pdf
PPTX
Python _dataStructures_ List, Tuples, its functions
PDF
Pythonlearn-05-Iterationsiterationin.pdf
PPTX
Pythonlearn-05-Iterations Lecture Python
PPTX
Learn various loops and Iterations in Python
PPTX
My Presentation ITPdcjsdicjscisuchc.pptx
PPTX
Pythonlearn-05-Iterxkyxlyxkyxkations.pydoyxkyxkptx
PPTX
Database-Services-AWS-Business-Professionals.pptx
PPTX
Introduction-to-Containers-AWSProfessionals.pptx
More Related Content
PPTX
PPTX
Python Session 11(301025).pptx sample ppt
PPTX
The document discusses for loops in Python. It explains that for loops are us...
PPTX
loopsnote................, b .pptx
PDF
PythonBasics that beginer should know (1).pdf
PDF
Introduction to Python Prog. - Lecture 2
PPTX
Python programming language advanced level model explanation
PPT
Introduction to Python - Part Two
Similar to Python_Functions_Advancedby_KMSolutions.pptx
PPTX
Python Interview Questions | Python Interview Questions And Answers | Python ...
PPTX
PPTX
Python programming –part 3
PDF
PPT
PPT
PPT
PDF
Python Programming unit5 (1).pdf
PPT
ppt3-conditionalstatementloopsdictionaryfunctions-240731050730-455ba0fa.ppt
PPTX
PDF
Q-Step_WS_02102019_Practical_introduction_to_Python.pdf
PPTX
python_computer engineering_semester_computer_language.pptx
PPTX
PDF
Introduction-to-Iteration.pdf
PPTX
Python _dataStructures_ List, Tuples, its functions
PDF
Pythonlearn-05-Iterationsiterationin.pdf
PPTX
Pythonlearn-05-Iterations Lecture Python
PPTX
Learn various loops and Iterations in Python
PPTX
My Presentation ITPdcjsdicjscisuchc.pptx
PPTX
Pythonlearn-05-Iterxkyxlyxkyxkations.pydoyxkyxkptx
More from Ganesh Bhosale
PPTX
Database-Services-AWS-Business-Professionals.pptx
PPTX
Introduction-to-Containers-AWSProfessionals.pptx
PPTX
Artificial-Intigence-Neural-Networks-2.pptx
PPTX
Artificial-Intigence-Neural-Networks-1.pptx
PPTX
Oracle-Flashback_Table_Presentation.pptx
PPTX
AWS-Service-Transcribe-Artificial-Intelligence.pptx
PPTX
AWS-Rekognition-Service-Artificial-Intelligence.pptx
PPTX
AWS-Artificial-Intelligence-Services.pptx
PPTX
IntroSageMakerMLforProfessionalswithAI.pptx
PPTX
Artifical-Intelligence1-Introduction.pptx
PPTX
Python_Functions_Advanced3_KMSolutions.pptx
PPTX
Python_Functions_Advanced2_KMSolutions.pptx
DOCX
3.AWR and ASH Reportsfor Oracle Tuning.docx
DOCX
Step by stepDoc for Oracle TuningsandAWR.docx
PPTX
2.Python_Testing_Using_PyUnit_PyTest.pptx
PPTX
1.Python_Testing_Using_PyUnit_Pytest.pptx
PPTX
2.Python_Unit _Testing_Using_PyUnit_Pytest.pptx
PPTX
awsfundamentals1_cloud_Infrastructure.pptx
PPTX
Generators-in-Python-for-Developers.pptx
PPTX
Advance-Python-Iterators-for-developers.pptx
Recently uploaded
PDF
Odoo Implementation Checklist: A Strategic ERP Blueprint for Business-Ready D...
PPTX
The Transformative Technology in Contemporary Businesses
PPTX
Workflow and decision Automation with Flowable
PDF
UiPath Automation Developer Associate Training Series 2025 - Session 4
PDF
Effortless Distributed Systems with Aspire.pdf
PPTX
Tech Trends 2026: AI Agents, Quantum Computing, Robotics & Cybersecurity
PDF
UiPath Modern Automation Playbook -Session 2
PPTX
Microsoft Azure News - February 2026 - BAUG
PDF
Empower your IT team with cloud-based PC management using Dell Management Por...
PDF
shayk.online - Anonymous chat with Sinatra and WebSockets
PDF
20260212 Security-JAWS activity results for 2025 and activity goals for 2026
PDF
Escape from the Forbidden Zone: Smuggling green and inclusive tech past the g...
PDF
final~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.pdf
PDF
TrustArc Webinar - From Trends to Action: Fitting AI Governance into Privacy Ops
PDF
Spec-Driven Development with Kiro: Elevating Software Quality, Traceability, ...
PPTX
PPTX game guess the logo with a twistppt
PDF
Constraint Collapse and Fidelity Decay in Scaled Language Models
PPTX
GenerationAI Paris 2025 | AI in Tech: Beyond Expectations, Into Execution
PDF
Oracle Cloud Infrastructure 2025 Architect Professional (1Z0-1127-25) Master ...
PPTX
Introducing VisualSim 2610 The Next Leap in System Level Modeling
Python_Functions_Advancedby_KMSolutions.pptx 1. 2. Enumerate Function in Python
print(names_list)
#for i in names_list:
# print(i)
# looping with index
#for i in range(len(names_list)):
# print(i,names_list[i])
for i,j in enumerate(names_list,1):
print(i,j)
3. 4. 5. Iterators
• To print list of elements without loop
• 2 methods
• Using Index
Ex : days_list=[“Sun”,”Mon”,”Tue”,”Wed”,”Thu”]
i=0
while I <= len(days_list):
print(days_list[i])
i+=1
6. Iterators
• Next method is using iterator protocol
• Way of working iterators and iterables
for i in list1: # list1 is iterables
print(i) # i is iterator
objects
Inbuilt Function is
L1=iter(list1)
next(L1)
Next(L2)
Note :
lists/tuples/sets/d
7. 8. 9. Generators Function
• Generator function is a function which returns generator-iterator
with the help of yield keyword
Generator-iterator is special type of iterator ie. generator function will
Generate iterators
All generator-iterator are iterators but all iterators are not generator-
iterators
yield is like a return in normal function
10. 11. Generator Example 1
def disp_nos(mx_no):
x=1
while x < mx_no:
yield x*x x+=1
if x>mx_no:
break
no=disp_nos(10)
print(next(no))
12. Generator Example 2
def disp_fibo_nos(nos):
a,b=0,1
while True:
c=a+b
if c<=nos:
yield c
a=b
b=c
else:
break
n=disp_fibo_nos(10)
print(next(n))
print(next(n))
print(next(n))
print(next(n))