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.
Define a simple function that returns your name.
Use the `def` keyword.
What does the return keyword do?
Think about what a function gives back.
What keyword is used to define a function in Python?
Think of it as the starting point for any function.
True or False: A function can only return one value.
Consider how values can be combined.
Create a function that checks if a number is prime and returns True or False.
Remember how to loop through numbers.
Develop a function that takes a string and returns it reversed.
Think about how to access string indices.
5 more questions in this section. Enroll free to practise them all.
Enroll free