Assignment
1️⃣ Lambda Functions, map(), filter(), reduce() (6 Assignments)
Assignment 1: Using a Simple Lambda Function
square = lambda x: x ** 2
print(square(5)) # Output: 25Assignment 2: Using Lambda with map()
numbers = [1, 2, 3, 4, 5]
squared = list(map(lambda x: x ** 2, numbers))
print(squared) # Output: [1, 4, 9, 16, 25]Assignment 3: Using Lambda with filter()
numbers = [1, 2, 3, 4, 5, 6]
evens = list(filter(lambda x: x % 2 == 0, numbers))
print(evens) # Output: [2, 4, 6]Assignment 4: Using Lambda with reduce()
Assignment 5: Using map() with Multiple Lists
Assignment 6: Using filter() with Strings
2️⃣ Decorators & Generators (6 Assignments)
Assignment 7: Creating a Simple Decorator
Assignment 8: Using a Decorator with Arguments
Assignment 9: Using Multiple Decorators
Assignment 10: Creating a Simple Generator
Assignment 11: Using Generators for Fibonacci Sequence
Assignment 12: Generator for Infinite Number Sequence
3️⃣ Working with sys Module (4 Assignments)
Assignment 13: Getting Python Version
Assignment 14: Command Line Arguments
Assignment 15: Exiting a Script with sys.exit()
Assignment 16: Finding Max Recursion Depth
4️⃣ Understanding os and shutil Modules (4 Assignments)
Assignment 17: Getting the Current Working Directory
Assignment 18: Listing Files in a Directory
Assignment 19: Creating & Removing a Directory
Assignment 20: Copying a File with shutil
Last updated