# Bounds error while iterating over for loop

**URL:** <https://discourse.julialang.org/t/bounds-error-while-iterating-over-for-loop/87245>\
**Category:** General Usage\
**Created:** [September 14, 2022, 2:30am UTC](https://discourse.julialang.org/t/bounds-error-while-iterating-over-for-loop/87245 "2022-09-14T02:30:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [September 14, 2022, 5:39am UTC](https://discourse.julialang.org/t/bounds-error-while-iterating-over-for-loop/87245/3 "2022-09-14T05:39:36Z")

</div>

Welcome! Please add a triple backtick fence around your code to make it legible ([Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)).

Bounds error means you are indexing outside the size of a list.

---

_[View the full topic](https://discourse.julialang.org/t/bounds-error-while-iterating-over-for-loop/87245)._
