"""
Topic 04: Functions & Lambda Expressions - MEDIUM Exercises (10)
"""
# Exercise 1: Write a function 'factorial' that calculates the factorial of a number using recursion.
# Write your code below:
# Exercise 2: Create a function 'check_palindrome' that checks if a string is a palindrome.
# (Ignore case and whitespace).
# Write your code below:
# Exercise 3: Write a function 'sum_digits' that takes an integer and returns the sum of its digits.
# Write your code below:
# Exercise 4: Create a function 'list_stats' that takes a list of numbers and returns its (min, max, average) as a tuple.
# Write your code below:
# Exercise 5: Define a function 'convert_temp' that takes (value, unit="C").
# If unit is "C", convert to Fahrenheit. If "F", convert to Celsius.
# Write your code below:
# Exercise 6: Write a function that accepts any number of arguments (*args) and returns their product.
# Write your code below:
# Exercise 7: Create a function 'filter_even' that takes a list of numbers and returns a new list with only even numbers using a for loop.
# Write your code below:
# Exercise 8: Now rewrite the 'filter_even' function using a lambda expression and the built-in filter() function.
# Write your code below:
# Exercise 9: Create a function 'apply_discount' that takes (price, discount_percent=10).
# It should return the final price.
# Write your code below:
# Exercise 10: Write a function that counts the frequency of each character in a string and returns a dictionary.
# Write your code below: