---
title: "Loop in python"  
description: "Loop in python"  
author: "Anonymous User"  
published: 2018-07-03  
updated: 2018-07-04  
canonical: https://www.mindstick.com/forum/34576/loop-in-python  
category: "python"  
tags: ["python-3.4", "python"]  
reading_time: 1 minute  

---

# Loop in python

[Explain](https://www.mindstick.com/forum/157854/what-is-system-debugging-explain-some-system-debugging-tools-used-in-modern-computer-systems) For loop in [Python](https://www.mindstick.com/articles/75378/simple-yet-useful-tips-when-using-python) ?

## Replies

### Reply by Prakash nidhi Verma

For loop in Python :

A for loop is used for iterating over a sequence which is either a list,a tuple or a string. Ex:

```
fruits = ["apple", "banana", "cherry"] for x in fruits:
  print(x)
```

Break statement :

```
fruits = ["apple", "banana", "cherry"] for x in fruits:
  if x == "banana":
    break
  print(x)
```

\

continue statement :

```
fruits = ["apple", "banana", "cherry"] for x in fruits:
  if x == "banana":
    continue
  print(x)
```


---

Original Source: https://www.mindstick.com/forum/34576/loop-in-python

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
