What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-29 07:35:16
str remove except alphabets
#take user input String1 = input('Enter the String :') #initialize empty String String2 = '' for i in String1: #check for alphabets if (ord(i) >= 65 and ord(i) <= 90) or (ord(i) >= 97 and ord(i) <= 122): #concatenate to empty s... Add solution