No account needed · Learn something today

Conditions and loops

Application Development · Free lesson 3 of 3 · Foundation level · Video 0:32 + practice

Your learning plan

Watch the narrated lesson or read the teaching notes, try the worked example, then answer three practice questions. Video: 0:32. Allow about 5–10 additional minutes for the sample activity and quiz, or longer when needed.

Watch · See · Practise

Watch this lesson’s visual explainer

32-second silent teaching clip with on-screen text and English captions. Tap Play; pause to read. Full teaching notes follow the visual guide.

Open this lesson video directly

See the steps: Conditions and loops

Read the worked example and write your expected result. Then: Write pseudocode to count incomplete tasks in a list. Then: Record your attempt before checking the answer, then explain any correction.
Illustrated guided steps for this lesson. Read each step, predict the result, then try the written activity.
Read the video transcript

Understand the idea

Conditions choose behavior and loops repeat operations. Define the stopping condition before writing a loop. Test boundary cases, such as zero items, one item and a maximum allowed count.

Worked example

A task list loops over stored tasks and displays only tasks marked incomplete.

Try it yourself

Write pseudocode to count incomplete tasks in a list.

Open the illustrated guide

This visual recap supports the full lesson. It is not an instructor recording.

Understand the idea

Conditions choose behavior and loops repeat operations. Define the stopping condition before writing a loop. Test boundary cases, such as zero items, one item and a maximum allowed count. A loop with no reachable stop can freeze the interface or consume resources.

Worked example

A task list loops over stored tasks and displays only tasks marked incomplete.

Now check what you learned: Answer three practice questions below. Choose an answer, then press Next Question. The last question shows your score.

Check your understanding

Sample lesson 3 of 3 · 3 practice questions

Pass each sample lesson’s quiz to build your practice progress.

Answer all 3 questions, then check your score below. This is a practice check, not the full course or an official certification exam.

Question 1 of 3: Write pseudocode to count incomplete tasks in a list.

Question 1 of 3

Optional video learning

Learn with video

Programming with Python · beginner introduction

Source: Microsoft Learn · Supplementary video

Watch for: Look for an example related to “Conditions and loops”. Pause and explain how it connects to this lesson.

For a long course, choose the relevant chapter; you do not need to watch the entire video before continuing. This is a supporting program video and may cover only selected topics; it is not a separate recording of every lesson. Videos are optional; use the written lesson and exercises too.

Watch on the source website ↗

More videos from Microsoft Learn ↗

If playback is unavailable, use the source link. Look for captions or a transcript on the provider’s page.

Optional extra practice · write your answer

Your turn

Write pseudocode to count incomplete tasks in a list.

Compare your answer

Initialize a counter, inspect each task, increment for incomplete tasks and return the counter after the loop.

More learning options and student rewards

Your sample answer is not submitted. Passed sample quizzes are remembered only in this browser when storage is available; this does not complete the full course or approve a reward.