Section 1 - Instruction

You've learned how to nest if statements inside other if statements. This creates layers of decision-making where inner conditions only get checked if outer conditions are met.

Engagement Message

Ready to practice building these decision trees?

Section 2 - Practice

Type

Multiple Choice

Practice Question

What will this nested code print?

A. Nice day! B. Nice day! Perfect for a picnic! C. Nice day! Bring a jacket! D. Maybe stay inside.

Suggested Answers

  • A
  • B - Correct
  • C
  • D
Section 3 - Practice

Type

Fill In The Blanks

Markdown With Blanks

Fill in the blanks to create proper nesting:

Suggested Answers

  • if
  • if
  • else
  • elif
  • while
Section 4 - Practice

Type

Sort Into Boxes

Practice Question

Sort these scenarios based on whether they're good candidates for nesting:

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal