Showing unexpected EOF parsing error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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