Showing unexpected EOF parsing error | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Showing unexpected EOF parsing error

def my_func(f, arg): return f(arg) print((my_func(lambda x: 2*x*x, 5))

23rd Feb 2020, 1:05 PM
Sai Deepika Kathiri
Sai Deepika Kathiri - avatar
2 Réponses
+ 3
Need another ')' at the end.
23rd Feb 2020, 1:06 PM
Russ
Russ - avatar
+ 2
Yes tq
23rd Feb 2020, 1:07 PM
Sai Deepika Kathiri
Sai Deepika Kathiri - avatar