Functions in Python: Gaining a Deeper Understanding of Python Functions

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following are valid use cases for lambdas in Python?

To use with the built-in filter() function in Python Use and throw away functions which may not be reused Defining a function on the fly

Which of the following is possible using other data types but not functions?

Updating function code programmatically

Which of the following are modules which are available as a part of the Anaconda distribution of Python?

datetime os random

Which of the following statement(s) about global and local variables is/are true?

Local variables with the same name hide global variables

Which of the following statement(s) about passing arguments by value is/are true?

Changes made to string variables inside a function are NOT reflected outside a function Changes made to numeric variables inside a function are NOT reflected outside a function

Which of the following is true about functions as first class citizens in Python?

Functions can be passed in as input arguments to other functions

Which statement is false about functions as first class citizens in Python?

Functions can have any name

What are lambdas in Python?

Functions with no name

How do you access a new module's functions from within Python?

Import the module first using the "import" statement

Which of the following is true of lambdas in Python?

Lambdas can be defined and invoked right away in one statement The body of a lambda can only have expressions

Which of the following types of arguments are passed by reference to Python functions?

Lists


संबंधित स्टडी सेट्स

Web Apps I (File extension terminology and definitions)

View Set

Mastering Assignment 3 : lipids and membranes

View Set

Evolve: Maternity - Women's Health/Disorders

View Set