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 named say_hello that takes no parameters and prints 'Hello!'
Use the `def` keyword to create a function.
Create a function called multiply that takes two numbers and prints their product.
Remember to include parameters for the numbers.
What keyword is used to define a function in Python?
Think of the beginning of a function definition.
Functions can return multiple values.
Consider how you can handle more than one return value.
Create a function that takes two strings and returns them concatenated with a space in between.
Think about how strings can be combined.
Design a function that takes a list and returns the largest number in that list.
Utilize the built-in max function.
5 more questions in this section. Enroll free to practise them all.
Enroll free