# 영어 가사를 분석하는 프로그램을 만들고 싶어해요. 아래가 조사하고 싶은 목록이에요.

# - 등장한 단어 목록
# - 모음 개수
# - 자음 개수
lyrics='''
I can hear you but I won't
Some look for trouble while others don't
There's a thousand reasons I should go about my day
And ignore your whispers, which I wish would go away, oh
(Oh) oh (oh) You're not a voice, you're just a ringing in my ear
And if I heard you, which I don't, I'm spoken for I fear
Everyone I've ever loved is here within these walls
I'm sorry, secret siren but I'm blocking out your calls
I've had my adventure, I don't need something new
I'm afraid of what I'm risking if I follow you Into the unknown
Into the unknown
Into the unknown
(Oh, oh) What do you want? 'Cause you've been keeping me awake
Are you here to distract me so I make a big mistake?
Or are you someone out there who's a little bit like me?
Who knows deep down I'm not where I'm meant to be?
Every day's a little harder, as I feel my power grow
Don't you know there's part of me that longs to go Into the unknown
Into the unknown
Into the unknown
(Oh, oh), whoa Are you out there? Do you know me?
Can you feel me? Can you show me? Oh (oh), oh (oh)
Oh (oh), oh (oh)
Oh (oh), oh (oh) Where are you going? Don't leave me alone
How do I follow you
Into the unknown?'''


v = 'aeiouAEIOU'
c=0
c2=0
for i in range(len(lyrics)):
    #알파벳인가? isalpha()
    if lyrics[i].isalpha()==True:
        #모음안에 있는 알파벳인가?
        if lyrics[i] in v:
            c+=1
        else:
            c2+=1
print(c,c2)

            


Embed on website

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