Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does it mean for a function to be a first-class citizen in Python?
Consider how you can use a function like a variable.
Give an example of a first-class function.
Think of using a function in a new way.
What are first-class functions in Python?
Think about how functions behave like other types.
True or False: Higher-order functions can return other functions.
Recall our discussions on how 'speak' can return different functions.
Create a higher-order function that accepts a list of numeric values and a function that modifies those values. Return the updated list.
Utilize lambda functions for quick operations!
Define a higher-order function that can compose two functions together, allowing users to pass in either function and see the result of applying them in order.
Think about how functions can wrap around each other like nesting.
5 more questions in this section. Enroll free to practise them all.
Enroll free