arr = [4, 8, 3, 6, 7]
answer = 0

for i in arr:
	if i/2 in arr:
		answer += 1
print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: