0

How to solve this?

Given a list of names, output a list that contains only the names that consist of more than 5 characters. names = (Fredrick, Ali, Veronica, George, Anamika) Using map, filter,

12th Sep 2020, 3:27 AM
Rajat Banerjee
Rajat Banerjee - avatar
10 odpowiedzi
+ 7
Here is the solution: https://code.sololearn.com/cc20OMa31l1Y/?ref=app You just had a few things around the wrong way.
12th Sep 2020, 3:42 AM
Rowsej
Rowsej - avatar
+ 5
Rajat Banerjee we are not here to do your work for you. Please attempt the problem and show us where you got stuck or the code failed to obtain the output required. Thanks and happy coding.
12th Sep 2020, 3:32 AM
BroFar
BroFar - avatar
+ 3
Hey ! here is my attempt res = list(filter(lambda x: len (x)>5, names )) print (res)
17th Sep 2021, 9:58 AM
Shad Abdullah
Shad Abdullah - avatar
+ 1
Here is my attempt.
12th Sep 2020, 3:33 AM
Rajat Banerjee
Rajat Banerjee - avatar
+ 1
Thank you for all your help and support. I am new and still try to grasp coding.
12th Sep 2020, 12:27 PM
Rajat Banerjee
Rajat Banerjee - avatar
0
Where’s your attempt?
12th Sep 2020, 3:30 AM
Rowsej
Rowsej - avatar
0
res = len (filter(lambda x: x>5, names )) print (res)
12th Sep 2020, 3:33 AM
Rajat Banerjee
Rajat Banerjee - avatar
0
Huh I am new here how do I start I don't understand
13th Sep 2020, 6:09 PM
Cynthia 3780
0
res=list(filter(lambda x:len(x)>5,names)) print(res)
9th Apr 2022, 5:20 AM
HARSHAD PARIHAR
0
my version: names = ['David', 'John', 'Annabelle', 'Johnathan', 'Veronica'] res = list(filter(lambda x: len(x) > 5, names)) print(res)
31st Jan 2023, 4:29 PM
Ainur Akhmet-Ganiyeva
Ainur Akhmet-Ganiyeva - avatar