+ 1

Fill in the blanks to create a lambda function that returns the square of its argument, and call it for the number 8. a = (

ssss

12th Jul 2018, 9:56 AM
Patrick Mita
Patrick Mita - avatar
13 Antworten
+ 9
a= (lambda x: x*x) (8)
6th Sep 2019, 6:27 AM
Kamlesh Kumar
Kamlesh Kumar - avatar
+ 3
a = lambda n: n**2 print(a(8))
12th Jul 2018, 10:06 AM
Mert Yazıcı
Mert Yazıcı - avatar
+ 3
Mert Yazici you are supposed to use a as the name.
12th Jul 2018, 10:11 AM
Satyam
+ 2
Paul Grasser You can' t use return in lambdas
12th Jul 2018, 10:07 AM
Mert Yazıcı
Mert Yazıcı - avatar
+ 1
Fill in the blanks to create a lambda function that returns the square of its argument, and call it for the number 8. Ans: (lambda x: x*x) (8) lambda :
6th Dec 2020, 3:38 AM
IRFAN KHAN
IRFAN KHAN - avatar
+ 1
range(8)
15th Mar 2023, 10:11 AM
Afaq Ahmad
+ 1
a= (lambda x: x*x)
25th Sep 2023, 9:00 AM
Muktai Nagnathrao Indraksha
Muktai Nagnathrao Indraksha - avatar
0
can be less math in it and more explanations?ty
3rd Dec 2019, 8:34 AM
Malka Ru
Malka Ru - avatar
0
natawut punpim
11th Dec 2019, 4:28 AM
สุพัฒน์ชัย บุญนันท์
สุพัฒน์ชัย บุญนันท์ - avatar
0
a = (lambda x: x*x) (8)
23rd Mar 2021, 10:06 AM
GetKet
GetKet - avatar
0
print(8)
17th Sep 2022, 3:11 PM
YAZEENKHAN
- 1
question : Fill in the blanks to create a lambda function that returns the square of its argument, and call it for the number 8. answer : a = ( lambda x: x*x ) (8)..
28th May 2021, 11:01 AM
Madhavareddy
Madhavareddy - avatar
- 2
a = lambda x: return x*x print(a(8))
12th Jul 2018, 10:04 AM
Paul Grasser
Paul Grasser - avatar