def search_words(phrase):
vowels = set('asdg')
return vowels.intersection(set(phrase))
def search_letters(phrase, letters='qwer'):
return set(letters).intersection(set(phrase))
$ python3
그럼 터미널 안에서 python 인터프리터를 사용할 수 있게 된다
>>> import mymodules
>>> mymodules.search_words('hitch-hiking')
{'g'}
>>> mymodules.search_letters('qwerasdf')
{'q', 'w', 'r', 'e'}
이때, 함수에 접근하려면 [파일명.함수명] 이런 식으로 접근한다
quit()