如何检查一个字母是否在一个单词中?我想检查是否A
在ABC
?我怎么做?
到目前为止我的代码:
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
if 'a, e, i, o, u' in original: # ?
print vowel
else:
print consonant
else:
print 'empty'