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.
You will be offered the glucose tolerance test if the results from the glucose challenge test indicate that you may have gestational diabetes. The glucose challenge test (GCT) is routinely offered when you are between 24 and 28 weeks pregnant. The GCT does not diagnose gestational diabetes, it simply screens for it.he test is usually carried out when you're between 24 weeks and 28 weeks pregnant. Your midwife or doctor will let you know if you can eat and drink before the test or how long you need to fast before taking the test. You may need to go to a clinic to have the test or you may be in hospital.