1#take user input
2String1 = input('Enter the String :')
3#initialize empty String
4String2 = ''
5for i in String1:
6 #check for alphabets
7 if (ord(i) >= 65 and ord(i) <= 90) or (ord(i) >= 97 and ord(i) <= 122):
8 #concatenate to empty string
9 String2+=i
10print('Alphabets in string are :' + String2)