Quick actions

cmd+k|ctrl+k

Navigation

Languages

Buoi 2 - bai 3

Snippet info

Language

Python

Visibility

public

Author

cuongd10vt3

Created

2016-10-17T06:48:48Z

Updated

2016-10-17T06:48:55Z

#bai 3
vowel = "aoeiu"
consonant = "bcdfghjklmnpqrstvwxyz"
s = "kiem tra nguyen am, phu am trong string"
a = 0
b = 0
for x in s:
    if x in vowel:
        a = a +1
    if x in consonant:
        b = b + 1
print("so nguyen am trong string la %s \nso phu am trong string la %s" %(a, b))
        
INFO