Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is the syntax to define a function in Python?
Remember the keyword used.
Give an example of a built-in function in Python.
Think of commonly used functions.
What keyword is used to define a function in Python?
It starts with 'd'.
True or False: Local variables can be accessed from outside their function.
Think about variable accessibility.
Create a user-defined function that checks if a number is prime. Use recursion to count down from that number.
Think of how you would check for factors.
Write a lambda function that takes a list of integers and returns a new list with the cubes of each number.
What operation gives you cube values?
5 more questions in this section. Enroll free to practise them all.
Enroll free