+ 2
What is wrong with this filter method
I am trying to solve that's odd code coach problem but solution which i found has error plz help to clear it https://code.sololearn.com/cKV9YmhrNGLw/?ref=app
8 Antworten
+ 4
Got it thanksAbhay
+ 3
Missing closing parenthesis at line 8
+ 3
Instead of
hola = list(filter(lambda x: x % 2 == 0, lis)
It should be
hola = list(filter(lambda x: x % 2 == 0, lis))
Also convert input() to int when asking for user input
+ 2
Pratik Shinde h = int(input())
+ 1
Abhay yes but still not working
saying not all argument converted to list
+ 1
If you did what I said then inputting this way
5
1
2
3
4
5
Works fine for me
+ 1
Plz share your code bit code Abhay
I still didn't find it after making changes you said
https://code.sololearn.com/cKV9YmhrNGLw/?ref=app
+ 1
✌️