64. לולאת היא מהwhile?
•מטאפורה:במבה שקית עם אדם בן
•יש בשקית40במבה יחידות,בלולאת נמצא אותה לאכול ורוצה במבה שאוהב אדם בןwhile
• http://www.codeskulptor.org/#user42_W4G04OOmnx_0.py
1. number of bambas = 40
2. while number of bambas >0:
3. take one bamba
4. eat bamba
5. go to step 2
6. put the empty bag away
algorithm
program
74. syntax of nested for loops
for var1 in sequence1:
statement(s) of outside loop
for var2 in sequence2:
statement(s) of inner loop
statement(s) of outside loop
after loops