When you have a piece of code you want to run x number of times, then code within that code which you want to run y number of times, you use what is known as a nested loop. In Python, these are heavily used whenever someone has a list of lists-an iterable object within an iterable object.1  Early exits.f you've done any programming before, there's no doubt you've come across a for loop or an equivalent to it. In Python, they work a little differently. Basically, any object with an iterable method can be used in a for loop in Python.
If the result is abnormal, it is typically followed up with a fasting blood glucose test or a GTT. Glucose blood tests are also used to screen pregnant women for gestational diabetes between their 24th and 28th week of pregnancy.
Your doctor will probably screen you for gestational diabetes between your 24th and 28th weeks of pregnancy. If you have certain risk factors (see Who's at Risk? below), your doctor may opt to screen you sooner. During your screening, you'll drink a sugary liquid, then take a blood test. If your blood sugar levels appear high, you'll need to take a longer test, during which you'll drink more liquid and your blood sugar will be tested several times to determine whether you have gestational diabetes.