HTTP/2 200
date: Sun, 27 Jul 2025 10:11:17 GMT
content-type: text/html; charset=utf-8
content-encoding: gzip
cross-origin-opener-policy: same-origin
nel: {"report_to":"heroku-nel","response_headers":["Via"],"max_age":3600,"success_fraction":0.01,"failure_fraction":0.1}
referrer-policy: strict-origin-when-cross-origin,origin
report-to: {"group":"heroku-nel","endpoints":[{"url":"https://nel.heroku.com/reports?s=AwWHh8fPslwSify%2B9vP2Ks%2BPjxkAbA82lQXU2cASUgw%3D\u0026sid=67ff5de4-ad2b-4112-9289-cf96be89efed\u0026ts=1753611077"}],"max_age":3600}
reporting-endpoints: heroku-nel="https://nel.heroku.com/reports?s=AwWHh8fPslwSify%2B9vP2Ks%2BPjxkAbA82lQXU2cASUgw%3D&sid=67ff5de4-ad2b-4112-9289-cf96be89efed&ts=1753611077"
set-cookie: csrftoken=Pvpd4OPspMVJu9tnEmEDCM4pRKl1BUUc; expires=Sun, 26 Jul 2026 10:11:17 GMT; Max-Age=31449600; Path=/; SameSite=Lax; Secure
set-cookie: origin=ref-realpython.com; expires=Fri, 21 Apr 2028 10:11:17 GMT; Max-Age=86313600; Path=/
set-cookie: cid=0e9fe11f28e2448883c294e7a4ec5f0d; expires=Mon, 27 Jul 2026 10:11:17 GMT; Max-Age=31536000; Path=/
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: Cookie, Accept-Encoding
via: 2.0 heroku-router
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
cf-cache-status: DYNAMIC
server: cloudflare
cf-ray: 965b5a0f4fa7c46e-BLR
alt-svc: h3=":443"; ma=86400
For Loops in Python (Definite Iteration) – Real Python
For Loops in Python (Definite Iteration)
Learn all about how to perform definite iteration with Python for loops. You’ll see how other programming languages implement definite iteration, learn about iterables and iterators, and tie it all together to learn about Python’s for loop.
What’s Included:
Related Learning Paths:
With 20 years as a teacher of music technology, Darren is keen to bring his skills to the Python table.
» More about Darren
Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:
← Browse All Courses
kbutler52
Thank you so much for breaking this topic down for me! Love how you helped me to understand it!!!!!