Programming in Python - - Unit 9 - Week 9 (Contents)_ Python Functions
Programming in Python - - Unit 9 - Week 9 (Contents)_ Python Functions
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/CEC)
mathavi.2007@gmail.com
Course Assessment-9-2024
outline The due date for submitting this assignment has passed.
Due on 2024-04-20, 23:59 IST.
Week 1 Score: 9/10=90%
(Contents) :
Planning the
Computer Assignment submitted on 2024-04-14, 20:41 IST
Program () 1) Which of the following is a built-in function in Python? 1 point
Week 2 def
(Contents): lambda
Techniques
return
of Problem
Solving () yield
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=50&assessment=100 1/4
4/23/24, 3:17 AM Programming in Python - - Unit 9 - Week 9 (Contents): Python Functions
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=50&assessment=100 2/4
4/23/24, 3:17 AM Programming in Python - - Unit 9 - Week 9 (Contents): Python Functions
Week 10
return inner_func(x, y)
(Contents) :
return x
Python
Modules ()
result = outer_func(5, 10)
print(result)
Week 11
(Contents): 15
Input-Output
5
()
10
Week 12 50
(Contents):
Yes, the answer is correct.
Exception Score: 1
Handling () Accepted Answers:
15
9) Which of the following is the correct syntax to define a lambda function in Python? 1 point
def my_lambda(): x + 1
lambda x: x + 1
lambda(x): return x + 1
function lambda(x): return x + 1
Yes, the answer is correct.
Score: 1
Accepted Answers:
lambda x: x + 1
Apple
Mango
Banana
Kiwi
Y h i
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=50&assessment=100 3/4
4/23/24, 3:17 AM Programming in Python - - Unit 9 - Week 9 (Contents): Python Functions
https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=50&assessment=100 4/4