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 function that prints your favorite color.
Think about how to use the `print()` function.
What does return do in a function?
Remember, without `return`, how can a function send its result?
What is the purpose of a function in Python?
Remember the DRY principle we discussed.
True or False: A function can have multiple parameters.
Think about how we can add more than one input.
Write a function to check if a number is prime.
Consider how a prime number is defined.
Create a function that outputs the Fibonacci sequence up to n numbers.
Think about how Fibonacci numbers are generated.
6 more questions in this section. Enroll free to practise them all.
Enroll free