Question answerr^

1.Write a program to check given character is digit or not using isdigit() method.

2. Python program to replace the string space with a given character?

n = input(“Enter Your String :”)
mat = re.search(‘[0-9]’,n)
if mat!=None:
print(True)
else:
print(False)

print(“------->>>Question 2”)

n = input()
string = input()
mat = re.sub(‘\s’,n,string)
print(mat)

@sriv.ansh
Correct, keep it up.
Keep Practicing more.