program-
#import the re module
import re
#take input of string
print("Enter string")
s=input()
#fill all alphabet character from the string
x=re.findall('D',s)
print("Character that are present in string :",x)
Enter string
string1234
Character that are present in string : ['s', 't', 'r', 'i', 'n', 'g']
Enter string
1234567
Character that are present in string : []