Ad
Strings
Data Types
Arrays

Split the given string to get all alphabets present in the string. The string might contain characters apart from digits and alphabets, such as #, @ and others.

Example 1

Input : "Hello"
Ouput : ['H', 'e', 'l', 'l', 'o']

Example 2

Input : "Hello World!"
Ouput : ['H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd']

Code
Diff
  • def Special_Fission(input):
        input = list(input)
        return list(filter(lambda x:x.isalpha(),input)) 
    • split = list
    • def Special_Fission(input):
    • input = list(input)
    • return list(filter(lambda x:x.isalpha(),input))