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

CodeSignal

Writing Complex Python Functions

via CodeSignal

Overview

Write longer Python functions with conditionals, loops, and lists, then compose them into a small end-to-end data-processing workflow.

Syllabus

  • Unit 1: Designing Branching Functions
    • Reading a Branching Function
    • Extending the Grade Chain with D
    • Fixing Ticket Price Branch Order
    • Writing shipping_cost from Scratch
  • Unit 2: Building Answers with Loops
    • Reading Accumulator Functions
    • Filtering Inside the Accumulation
    • Freeing a Trapped Return
    • Stopping at the First Match
    • Building a String Accumulator
  • Unit 3: Processing Lists with Functions
    • Reading Functions That Take Lists
    • Reusing Both Functions on a Second List
    • Adding below average
    • Guarding Range Span on Empty Lists
    • Writing scaled from Scratch
  • Unit 4: Mutate or Rebind Lists
    • Reading Mutation Versus Rebinding
    • Mutation Accumulates Across Calls
    • Predict Mutate Versus Rebind
    • Fixing a Function That Sorts Callers List
    • Writing remove_zeros with Documented Mutation
  • Unit 5: Designing Focused Functions
    • Reading a Focused Long Function
    • Adding a Guarded Average Statistic
    • Skipping Invalid Prices
    • Repairing Accumulators Reset Inside Loops
    • Writing grade report from scratch
  • Unit 6: Building Function Pipelines
    • Reading a Pipeline of Stages
    • Running a Second Batch Through
    • Rewriting Nested Calls as Named Steps
    • Fixing a Mis-Ordered Pipeline
    • Adding a Blank Dropping Stage

Reviews

Start your review of Writing Complex Python Functions

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.