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

Treehouse

(UPI) Chapter 8: Functions and Control Flow in Python Course (How To)

via Treehouse

Overview

This course is part of our College Credit Program, designed to help you earn college credit while mastering valuable skills. If you're interested in pursuing college credit, click here to learn more.

This course focuses on Python functions and control flow, explaining how functions promote modularity, reusability, and clarity in programming. It also explores variable scope, arguments, return values, and the interplay between functions to build efficient and maintainable code.

Syllabus

Understanding Functions in Programming

This stage introduces Python functions, explaining how they allow for modular, reusable code by grouping task-specific statements that can be executed multiple times through function calls.

Chevron 7 steps
  • instruction

    Defining Function

  • Defining Function Quiz

    5 questions

  • instruction

    Control Flow and Functions

  • Control Flow and Functions Quiz

    5 questions

  • instruction

    Variable Scope

  • instruction

    Using Local and Global Variables Together

  • Global and Local Scope Quiz

    5 questions

Understanding Arguments, Parameters, and Mutability in Python Functions

This stage explores function arguments, parameters, and return values in Python, emphasizing how they enable dynamic and flexible code execution while highlighting the impact of mutability on function behavior.

Chevron 8 steps
  • instruction

    Arguments and Parameters

  • instruction

    Modifying Arguments and Mutability

  • Arguments, Parameters, and Mutability Quiz

    5 questions

  • instruction

    Return Values

  • instruction

    Using Functions as Values

  • Function Return Values and Usage Quiz

    5 questions

  • instruction

    Keyword Arguments

  • Keyword Arguments Quiz

    5 questions

Reviews

Start your review of (UPI) Chapter 8: Functions and Control Flow in Python Course (How To)

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.