Python Functions: Fill-in-the-Blank Test

💡 Start typing to check your answers!

3 attempts remaining per input

0
Correct
5
Total
0
Score

📝 Fill in the missing input(s) to complete the task.

After 3 failed attempts, the input will be disabled

✅ +20 Points for correct answer

❌ -3 Points for failed attempt

1. Function Definition

A function is defined using the keyword, followed by the function name and parentheses () for .

# Example

def greet(name):
    return "Hello, " + name

What will print(greet("Alice")) output?
Answer:

2. Lambda Functions

Lambda functions are small functions defined using the lambda keyword. They are useful for quick, single-use functions.

double = lambda x: x  2
print(double(5))  # Output: 10
💔 Better luck next time! 💔
🎉 Congratulation! You did it! 🎉