Python Functions, Objects & Classes Quiz What symbol is used to start the block of code inside a function in Python? () : {} [] What is a class in Python? A loop that runs functions A blueprint for an object A collection of functions A built-in function What is an object in Python? A blueprint for a class A collection of data (variables) and methods (functions) A function that stores data A method inside a function What is a class in Python? A type of function A set of built-in functions A function that stores variables A blueprint for an object What analogy is used in the lecture to describe a class? A blueprint of a machine A book and its chapters A construction map of a house A tree and its leaves Which of the following is a correct way to define a function in Python? def myFunction: define myFunction(): def myFunction(): function myFunction(): What will be the output of the following code? def say_hello(): print(‘Hello, Python!’) say_hello() Hello, Python! Error say_hello No output What is a function in Python? A block of code that runs automatically A loop structure A block of code that runs only when called A pre-defined set of statements Which of the following is an example of calling a function in Python? call greet greet() greet{} def greet() In Python, which of the following is NOT a built-in function? print() average() min() sum() Loading …