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

CodeSignal

Mastering Functions in Python

via CodeSignal

Overview

This course will help you dive deep into the world of function constructs in Python. You will revisit the basics of functions, explore advanced topics like lambda expressions and recursion, and master techniques essential for efficient and effective function usage within your programs.

Syllabus

  • Lesson 1: Functions in Python
    • Adding a Function for Three Integers
    • Greeting Function with Default Parameter
    • Calculate Discounted Price with Default Parameters
    • Finding the Maximum Value in a List
    • Sum of Elements in a List
    • Summing Values in Lists and Dictionaries
    • Concatenate Multiple Strings Using *args
  • Lesson 2: Modifying Variables with Functions in Python
    • Modifying the append_zero Function to Return a New List
    • Modifying the swap_first_last Function to Avoid Original List Alteration
    • Reverse List and Append Value
    • Fix the Increment Function
    • Updating Scores in a Dictionary
  • Lesson 3: Mastering Anonymous Functions (Lambdas) in Python
    • Replace Adder Function with Lambda Function
    • Replace Regular Function with Lambda Function
    • Formatting Integers and Floats with Lambda Functions
    • Calculate Rectangle Area Using Lambda Function
    • Create a List of Squares for Even Numbers Using a Lambda Function
  • Lesson 4: Introduction to Recursion in Python
    • Counting Digits Recursively
    • Sum of Digits Using Recursion
    • Fix the Recursive Factorial Function
    • Calculating Fibonacci Numbers with Recursion
    • Summing Even Digits Recursively

Reviews

Start your review of Mastering Functions 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.