Write a program that prompt the user for a string. Extract all the digit from the string. If there are digit
Answers
Answered by
0
Answer:
string = "Hello brother@#$6497946!."
digit = []
for char in string:
if char.isdigit():
digit.append(char)
print( digit)
Explanation:
Similar questions
English,
6 months ago
Math,
6 months ago
Environmental Sciences,
1 year ago
Political Science,
1 year ago
Science,
1 year ago