def test_alnum(arr):
 for element in arr:
  if (not element.isalnum()):
   return False
 return True

def test_alnum ( arr ) : for element in arr : if ( not element . isalnum ( ) ) : return False return True
returns false if list contains non-alphanumeric strings .