Python Nested Loops
Loops Inside Loops
nested loop သည် loop တစ်ခုအတွင်း၌ ကွင်းပတ်တစ်ခုဖြစ်သည်။
"အတွင်းကွင်း" သည် "အပြင်ဘက်ကွင်းဆက်" ၏ထပ်ခြင်းတစ်ခုစီအတွက် တစ်ကြိမ်လုပ်ဆောင်သည်-
ဥပမာ
အသီးတိုင်းအတွက် နာမဝိသေသနတစ်ခုစီကို ရိုက်နှိပ်ပါ။
adj = ["red", "big", "tasty"]
fruits = ["apple", "banana", "cherry"]
for x in adj:
for y in fruits:
print(x, y)