---
title: "Discussion on \"Loops in Python\" | Hashnode"
description: "Discussion on \"Loops in Python\". In Python, loops are control structures that allow you to repeatedly execute a block of code based on a certain condition.\nTypes of loops\nThere are two main types of loops in Python: for loops and while loops.\n1. for Loop:\nThe for loop is used to ite..."
url: "https://hashnode.com/posts/loops-in-python/65bd3c9727f95f3640920035"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Loops in Python](https://navedwrites.hashnode.dev/loops-in-python?utm_source=hashnode&utm_medium=feed)

In Python, loops are control structures that allow you to repeatedly execute a block of code based on a certain condition. Types of loops There are two main types of loops in Python: for loops and while loops. 1. for Loop: The for loop is used to ite...

Feb 2, 2024 · 2 min read · navedwrites.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[Naved Ahmad](https://hashnode.com/@NavedAhmad)

@NavedAhmad · India

  
[View profile](https://hashnode.com/@NavedAhmad)

DevOps | AWS | Kubernetes | Docker | CI/CD | Jenkins | Bash Scripting | Ansible | Golang

Exploring DevOps and CNCF. Learning Golang.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
