Answer:
See explaination for python programming code
Step-by-step explanation:
Python programming code below
import re
s = "abc" # enter string here
#s = "hello world! HELLOW INDIA how are you? 01234"
# Short version
print filter(lambda c: c.isalpha(), s)
# Faster version for long ASCII strings:
id_tab = "".join(map(chr, xrange(256)))
tostrip = "".join(c for c in id_tab if c.isalpha())
print s.translate(id_tab, tostrip)
# Using regular expressions
s1 = re.sub("[^A-Za-z]", "", s)
s2 = s1.lower()
print s2
import string
values = dict()
for index, letter in enumerate(string.ascii_lowercase):
values[letter] = index + 1
sum = 0
for ch2 in s2:
for ch1 in values:
if(ch2 == ch1):
sum = sum + values[ch1]
print sum