Bài 3

Run Settings
LanguagePython
Language Version
Run Command
#Khoi tao nguyen am trong list tieng anh :D vowels = 'ueoai' consonants = 'bcdfghjklmnpqrstvwxyz' #Khoi tao string bat ki s = 'Hello anh Long cao to, dep trai, tai gioi.' #Thiet lap vong lap for de tinh nguyen am, phu am: s = s.lower() nguyenam = 0 phuam = 0 for word in s: if(word in vowels): nguyenam +=1 if(word in consonants): phuam +=1 print("So nguyen am la: {0} \nSo phu am la: {1}".format(nguyenam, phuam))
Editor Settings
Theme
Key bindings
Full width
Lines