Menu
Coddy logo textTech

Practice #3

Lesson 9 of 9 in Coddy's Python Lambda Functions course.

challenge icon

Challenge

Medium

Write a lambda function that receives a list of integers and returns the median value of the list.

The median is the middle value in a sorted list, or the average of the two middle values if the list has an even number of elements

Assign the lambda function to a variable named median.

Don't use <strong>def</strong>!

Try it yourself

# Write code here

All lessons in Python Lambda Functions