# Repeat while loop?

**URL:** <https://discuss.python.org/t/repeat-while-loop/11572>\
**Category:** Python Help\
**Tags:** help\
**Created:** [October 28, 2021, 12:31pm UTC](https://discuss.python.org/t/repeat-while-loop/11572 "2021-10-28T12:31:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DiddiLeija](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/diddileija/32/5095_2.png) [@DiddiLeija](https://discuss.python.org/u/DiddiLeija)\
**Post date:** [October 28, 2021, 1:39pm UTC](https://discuss.python.org/t/repeat-while-loop/11572/2 "2021-10-28T13:39:29Z")

</div>

This is more a design choice, however, I would do something like

```python
while 1:
    while condition: # your conditional
        ... # whatever you want?
    keep_going = input("Keep going? (y/n) ")
    if keep_going != "y":
        break

```

---

_[View the full topic](https://discuss.python.org/t/repeat-while-loop/11572)._
