replace string using delimator in python : I have a string like

    s = "2+3-5+sqrt(6)+5

I have to make it to

    s = "2+3-5+(6 ** 0.5)+5

How can I replace **sqrt(num)** with **(num ** 0.5)** in Python?