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