what is the output of def square(x): return x * x def test(func, x) : print(func(x)) test( square , 42). | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 1

what is the output of def square(x): return x * x def test(func, x) : print(func(x)) test( square , 42).

def square(x): return x * x def test(func, x): print(func(x)) test(square, 42)

7th Jan 2018, 1:53 AM
Aarnav
2 Réponses
- 2
1764
7th Jan 2018, 2:05 AM
Sebastián Zapata
Sebastián Zapata - avatar
- 2
what is the output of def square(x): return x * x
18th Apr 2020, 10:02 AM
KARTHIGAVANI N