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
''''
Now corrected, thanks to HonFu and Lothar for helping me with this code.
'''
myString = 'Hello! Hello! Mic Test - 1,2,3!'
alphabets = 'abcdefghijklmnopqrstuvwxyz'
vowels = []
consonants = []
spaces = []
symbols = []
numbers = []
for i in myString:
if i in alphabets or i in alphabets.upper():
if i in 'aeiouAEIOU':
vowels.append(i)
else:
consonants.append(i)
elif i in ' ':
spaces.append(i)
elif i in '0123456789':
numbers.append(i)
else:
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run