import re




def ganti_kata(words, oldWord, newWords):

    theWord = words

    regex = re.sub(oldWord, newWords, theWord)

    print(regex)





ganti_kata("theJakarta", "the", "d")
ganti_kata("purwakarta", 'a', 'o')
143023e7b2c9f0d5e9a4a6960cd975a6747096af
<mask token>

<mask token>


def ganti_kata(words, oldWord, newWords):
    theWord = words
    regex = re.sub(oldWord, newWords, theWord)
    print(regex)


<mask token>

<mask token>


def ganti_kata(words, oldWord, newWords):
    theWord = words
    regex = re.sub(oldWord, newWords, theWord)
    print(regex)


ganti_kata('theJakarta', 'the', 'd')
ganti_kata('purwakarta', 'a', 'o')

import re


def ganti_kata(words, oldWord, newWords):
    theWord = words
    regex = re.sub(oldWord, newWords, theWord)
    print(regex)


ganti_kata('theJakarta', 'the', 'd')
ganti_kata('purwakarta', 'a', 'o')

import re




def ganti_kata(words, oldWord, newWords):

    theWord = words

    regex = re.sub(oldWord, newWords, theWord)

    print(regex)





ganti_kata("theJakarta", "the", "d")
ganti_kata("purwakarta", 'a', 'o')