Filter Program to Search Student in list
def start_with_s(student):
return student.startswith('s')
Students = ["Aman","shivam","rohit","shyam","neha","palak"]
start_with_s=filter(start_with_s,Students)
print(list(start_with_s))
Filter Program to Search Student in list
def start_with_s(student):
return student.startswith('s')
Students = ["Aman","shivam","rohit","shyam","neha","palak"]
start_with_s=filter(start_with_s,Students)
print(list(start_with_s))