def bcontains(basket, apple):
	"""
	Checks if apple is in the basket
	@basket: container
	@basket type: list
	@apple: subset
	@apple type type: list
	@returns 1 if apple is contained in basket
	"""
	found = 0
	lapple = len(apple)
	lbasket = len(basket)

	if lapple >= lbasket : return 0

	for i in range(lapple) :
		found = 0
		for j in range(lbasket) :
			if apple[i] == basket[j]:
				found = 1
				break
		if found == 0 :
			return 0

	return 1