Q:

Print out all vowels not contained in a word

I'm suppose to write a function that prints out all the vowels that does not appear in the word that is passed as a parameter.
Output is suppose to be:
>>> absentVowels('computer')
'ai'
>>> absentVowels('science')
'aou'

The code I have right now is this:
def absentVowels(word):
    vowels = ['a','e','i','o','u']
    answer = ''
    for i in word:
        if i in vowels:
            answer+=i
    return answer

and instead of my output being 'aou' for absentVowels('science') im getting vowels that are contained in that word which are, 'iee' 
EDIT:
I actually need to use a iterator loop with an accumulator

A:

Use set.difference:
>>> set('aeiou').difference('computer')
set(['a', 'i'])
>>> ''.join(set('aeiou').difference('computer'))
'ai'

>>> ''.join(set('aeiou').difference('science'))
'auo'
>>> ''.join(sorted(set('aeiou').difference('science'))) # to get ordered result
'aou'

