---
title: "Discussion on \"100 days of Python Exercises\" | Hashnode"
description: "Discussion on \"100 days of Python Exercises\". DAY 2: for loops for definite, (counted) iteration.\nIn today's episode, we are looking at for loops. For loops as we use in Python are used for iterating through lists unlike while loops which are indefinite.\nThe use of various keywords such as break..."
url: "https://hashnode.com/posts/100-days-of-python-exercises-1/64ce17acc9ebb5f892b2e646"
---

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

Discussion

# [100 days of Python Exercises](https://brrrpcodes.hashnode.dev/100-days-of-python-exercises-1?utm_source=hashnode&utm_medium=feed)

DAY 2: for loops for definite, (counted) iteration. In today's episode, we are looking at for loops. For loops as we use in Python are used for iterating through lists unlike while loops which are indefinite. The use of various keywords such as break...

Aug 5, 2023 · 1 min read · brrrpcodes.hashnode.dev  
Read the article

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

## Written by

[Bright Andoh](https://hashnode.com/@Brighht)

@Brighht · Accra,Ghana

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

|Mastering python🧠|Aspiring Data Scientist 📊|Game Enthusiast🎮|Robotics🦾

## Responses 1

Markdown supported · ⌘↵ to post

[Adoo Darko Jonathan](https://hashnode.com/@adoodevv)

[Aug 5, 2023](https://hashnode.com/posts/100-days-of-python-exercises-1/64ce17acc9ebb5f892b2e646/comment/64ce258b3d3aabc9723f8d6b)

So, for the second part, what if 20 wasn't the first item in the list? What happens?

[Bright Andoh](https://hashnode.com/@Brighht)

[Aug 5, 2023](https://hashnode.com/posts/100-days-of-python-exercises-1/64ce17acc9ebb5f892b2e646/comment/64ce258b3d3aabc9723f8d6b#reply-64ce2687058075dab96ec3e4)

The loop gets broken immediately because the first condition is not met and if the first condition doesn’t work whole code wouldn’t function. Hope this helped .

[Adoo Darko Jonathan](https://hashnode.com/@adoodevv)

[Aug 5, 2023](https://hashnode.com/posts/100-days-of-python-exercises-1/64ce17acc9ebb5f892b2e646/comment/64ce258b3d3aabc9723f8d6b#reply-64ce2cff058075dab96ec4b7)

Oh yeah[Bright Andoh](https://hashnode.com/@Brighht)
