Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the purpose of a return statement in Python?
Think about what happens when a function is called.
Write a Python function named multiply that returns the product of two numbers.
What arithmetic operation do you need to perform?
What keyword is used to return a value from a function?
Think about how you communicate outputs in functions.
True or False: A function can return multiple values.
Think about how values can be grouped together.
Create a function that takes a string and returns its reversed version.
Consider how to slice strings in Python.
Design a function that takes a list of numbers and returns the average.
What mathematical operation involves summing and counting?
5 more questions in this section. Enroll free to practise them all.
Enroll free