Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Making Decisions in Python

via CodeSignal

Overview

Real programs make choices instead of running the same way every time. You'll build branching logic with if, else, and elif, use flowcharts to visualize possible paths, let Boolean values drive decisions, and avoid common mistakes with overlapping conditions and indentation. Repeating work with loops builds on these skills and is covered in the next course path.

Syllabus

  • Unit 1: Making Decisions with If
    • Making Your First Decision
    • Two Lines One Block
    • The Line That Always Runs
    • From Flowchart to Working Code
  • Unit 2: Branching with If Else
    • Answering Every Visitor at the Door
    • Tracing the Doorman Decision
    • Sending a New Visitor Through
    • From Flowchart to Doorman Code
  • Unit 3: Handling Cases with Elif
    • Building the Grading Ladder
    • Flip the Grade
    • Listening to the Silence
    • Restoring the Safety Net
  • Unit 4: Booleans and Decision Pitfalls
    • Naming the Condition
    • Two Badges One Score
    • One Winner Takes the Score
    • Rescue the Trapped Check

Reviews

Start your review of Making Decisions in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.