Courses
Sign inSign up

Functions in Python

Write Python programs with functions, the building blocks of scalable software.

31 Lessons310 Exercises

Decoding Messages

Indexing Strings

Functions

Calling Functions

Reusing Functions

Updating Functions

Level Review

Local Variables

Multiple Inputs

Identifying Functions

Using Multiple Functions

Level Review

Decryption Functions

Happy Paths

Special Cases

Edge Cases

Checking Preconditions

Level Review

Global Variables

Designing Inputs

Local Scope

Shadowing Variables

Level Review

Other Return Types

Returning Multiple Values

Using Boolean Functions

Returning Early

Returning None

Level Review

Character Encoding

Using Mod

Function Pipelines

Helper Functions

Reusing Helpers

Debugging Dependencies

Planning Tasks

Level Review


Course description

In this course you will write and debug programs with functions, while learning how to structure code that scales to solving large, complex problems. Through a sequence of cryptography-themed programming challenges, you will explore how to encapsulate logic and processes in functions. More advanced topics like multiple inputs, function composition, and function dependency are introduced gradually.


Topics covered

  • Decoding Messages
  • Indexing Strings
  • Functions
  • Calling Functions
  • Reusing Functions
  • Updating Functions
  • Local Variables
  • Multiple Inputs
  • Identifying Functions
  • Using Multiple Functions

Prerequisites and next steps

This is a great course if you're comfortable with variables, loops, and conditional statements in Python. Use it to level up your coding skills and grasp the concepts needed for writing scalable software.