# Loops and routines

**URL:** <https://discourse.psychopy.org/t/loops-and-routines/8439>\
**Category:** Builder\
**Created:** [July 10, 2019, 8:54am UTC](https://discourse.psychopy.org/t/loops-and-routines/8439 "2019-07-10T08:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asal](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Asal](https://discourse.psychopy.org/u/Asal)\
**Post date:** [July 10, 2019, 8:54am UTC](https://discourse.psychopy.org/t/loops-and-routines/8439/1 "2019-07-10T08:54:17Z")

</div>

Dear Sir,

Hello. I’m a new user of psychopy and I’m working with it for my M.A thesis. My task is self paced reading and includes 200 sentences which are not the same in length. I would like to know how to put all the sentences in one cycle and have just one routine instead of building 200 routines?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [July 10, 2019, 10:41pm UTC](https://discourse.psychopy.org/t/loops-and-routines/8439/2 "2019-07-10T22:41:31Z")

</div>

Yes, you would just have one routine surrounded by a loop. The loop reads your 200 sentences from a .csv or .xlsx file. You should watch this tutorial video to understand the basics of how to use PsychoPy:

From there, there are a number of posts on this forum which then explain how to implement a self-paced reading task, but you need to understand the basics first.

---

<div class="post-metadata">

**Author:** ![Asal](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Asal](https://discourse.psychopy.org/u/Asal)\
**Post date:** [July 12, 2019, 4:17pm UTC](https://discourse.psychopy.org/t/loops-and-routines/8439/3 "2019-07-12T16:17:06Z")

</div>

I appreciate your guidance.
