Write a Python program to replace a particular word in a sentence with "XXX".
Sentence: It's a beautiful day
Word to be replaced: beautiful
sentence = "It's a beautiful day"

word = "beautiful"

result = sentence.replace (word, "XXX")

print(result)