Repeat-Until or Equivalent Loop in Python [Duplicate]

I am a beginner in Python programming. I am trying to work on this algorithm that finds convex hull using Graham's scan method. However, in the pseudocode, there is a repeat ... until loop, which I could not figure out a way to write it in Python.

How do I write a repeat ... until loop in Python?

1
REPEAT
    ...
UNTIL cond

Is equivalent to

while True:
    ...
    if cond:
        break
6
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest