Search Header Logo

Lambda Def

Authored by Romenion Kz

Computers

10th Grade

Used 28+ times

Lambda Def
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

46 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

greet = lambda: print("Hi, how are you?")

greet()

(a)  

2.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

goodbye = lambda: print("Goodbye, see you soon!")
goodbye()

(a)  

3.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

square = lambda x: x ** 2
print(square(5))

(a)  

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

add_numbers = lambda a, b: a + b

print(add_numbers(3, 7))



(a)  

5.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

reverse_string = lambda s: s[::-1]

print(reverse_string("hello"))

(a)  

6.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

check_even = lambda x: "Even" if x % 2 == 0 else "Odd"

print(check_even(10))



(a)  

7.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

to_uppercase = lambda s: s.upper()

print(to_uppercase("python"))



(a)  

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?