I want to search countries from my list here is my list:
country=['American Samoa',
'Andorra','Angola','Anguilla'
,'Antarctica',' Barbuda',
'Argentina', 'Armenia', 'Aruba',
'Australia',
'Austria','Azerbaijan’,'Bahamas','Bangladesh','Barbados','BELARUS']
I have used this function but I think it's wrong
def find(f,seq):
for item in country:
if f(item):
return item
Can you please correct my codes Any help would be appreciated
seqto it if you don't use it? You probably just have to exchangecountryforseq. Also it would be nice to know whatfis doing.