<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find(pred, items):
 	""" 	Find the index of the first element in items for which pred returns 	True 	4 	True 	"""

	for i, item in enumerate(items):
		if pred(item):
			return i