PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import string
def getPlayAgain():
answer = input("Do you want to repeat the process? Please enter yes or no: ")
answer = answer.lower()
if answer == "yes":
return True
else:
return False
def isVowel(char):
vowels = "a,e,i,o,u"
if char in vowels:
return True
else:
return False
def isConsonant(char):
consonants = "b,c,d,f,g,h,j,k,l,m,n,o,p,q,r,s,t,v,w,x,y,z"
if char in consonants:
return True
else:
return False
def isPunctuctation(word):
punctuation = False
for char in word:
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run