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.
Overview
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