I am trying to change whitespaces to random number and number must be between the (0,9) in phyton ex. "hello world" to "hello6world" or "ı am the king" to "ı5am6the8king"
import random
text = input("Text :")
text.replace(" ", str((random.randint(0, 9))))
print(text)
here's my code but it didn't change the whitespace to number.