control structures & functions- filter function [on hold]

42
May 19, 2019, at 12:10 PM

You are given a list of strings such as

input_list =  ['hdjk', 'salsap', 'sherpa']

Extract a list of names that start with an ā€˜sā€™ and end with a ā€˜pā€™ (both 's' and 'p' are lowercase) in input_list.

Note: Use the filter() function.

CODE:

x= lambda s, p lower_case
sp = filter(x, input_list)
print(sp)
READ ALSO
Native Android Application for website without WebView

Native Android Application for website without WebView

I need to build a Native Android Application for a Website that I have successfully developedHow do I go about this without using the webView

42
Search for a string name inside object with spaces

Search for a string name inside object with spaces

I have an object like this which contain a string name with whitespaces :

11