20. Conditions and loops

Aap kis language mein padhna chahoge?

Which language do you want to learn in?

Code aur technical words English mein hi rahenge. Aap baad mein bhi language badal sakte ho.

Lesson 20

Conditions and loops

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • Ask a yes or no question in code.
  • Run code only when the answer is yes.
  • Pick between two or three paths with else and else if.
  • Repeat work with a for loop.
  • Print a product list with a discount rule.

50 minutes Lesson 20 of 30

Everything in Web Foundations

  • 30 step-by-step lessons
  • 3 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account