1. **Basic Multiplication Function:**
- Task: Write a function called `multiply` that takes two numbers as input and returns their product. Test it with 3 and 4.
2. **Even or Odd Function:**
- Task: Create a function named `even_or_odd` that takes a number and prints "E
ven" if it's even and "Odd" if it's odd. Test with different numbers.
ven" if it's even and "Odd" if it's odd. Test with different numbers.
3. **Greeting Function:**
- Task: Define a function `greet` that takes a name as input and prints a greeting like "Hello, [name]!". Test it with your name.
4. **Average Calculator:**
- Task: Write a function `average` that takes three numbers and returns their average. Test with 2, 4, and 6.
5. **Factorial Function:**
- Task: Implement a function `factorial` that calculates the factorial of a number. Test with factorial(4).
These simplified assignments still cover the basics of function creation, parameter usage, conditional statements, and simple mathematical operations.
0 Comments