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 is a built-in function? Name one.
Think of functions you often use without defining them.
How do you define a user-defined function?
What keyword starts the definition of a function?
Which of the following is a built-in function in Python?
Think about functions that are ready for you when you start coding.
True or False: User-defined functions are created using the keyword function.
Which keyword does Python use to define functions?
Create a user-defined function that generates a greeting for any name passed to it, and use it in a program to greet three different people.
How can you format strings in Python?
Write a program that uses both built-in and user-defined functions to calculate the average of numbers in a list.
What is the formula for calculating an average?
5 more questions in this section. Enroll free to practise them all.
Enroll free