I am trying to find out ID numbers where the number of vowels in the body is an even number for the URL: https://jsonplaceholder.typicode.com/posts
My code is given below:
import json
import requests
url ='https://jsonplaceholder.typicode.com/posts'
content = requests.get(url).content
j = json.loads(content)
for each in j:
print(each['id'],each['body'])
I am now able to print the body for each user ID but unable to find out the number of vowels in the body which is an even number. Need help