1/2/23 live python problem solution

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

word=“500”
if word.isdigit()==True:
print(“input is digit”)
else:
print(“input is string”)

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

name= “ed yo da”
chr=“*”
name=name.replace(" ",chr)
print(name)

@kunwerpunit

Correct, keep it up.
Keep Practicing more.