Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def find_fabrics(list, search_keyword):
  2.     array_of_fabrics = []
  3.     number_of_fabrics=0
  4.     for k in range(len(list)):
  5.         if (search_keyword in (str(list[k]))):
  6.             array_of_fabrics.append(list[k])
  7.             number_of_fabrics+=1
  8.     return number_of_fabrics, array_of_fabrics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement