Quick actions

cmd+k|ctrl+k

Navigation

Languages

ex3

Snippet info

Language

Python

Visibility

public

Author

hoandv506

Created

2016-10-19T01:27:22Z

Updated

2016-10-19T01:27:43Z

s ='hoc python'
vowel ='euioa'
consonants ='qwrtypsdfghjklmnbvcxz'
s =s.lower()
na =0
pa =0
for str in s:
    if (str in vowel):
        na +=1
    if (str in consonants):
        pa +=1
print("nguyen am: %s, phu am: %s" % (na,pa))
INFO