pastebin

Paste Search Dynamic
Recent pastes
contains item
  1. def contains_item(L, s):
  2.     """ (list, object) -> bool
  3.  
  4.    Return True if and only if s is an item of L.
  5.    """
  6.  
  7.     for item in L:
  8.         if item == s:
  9.             return true
  10.         else:
  11.             return false
  12.  
Parsed in 0.005 seconds