I m having a text , "Remainder 5 when 45 divided by 8"
I just want to assign the division operator ' / ' programmatically to the text "divide" and evaluate 45/ 8 and get the result(Remainder 5) . Thus i verify that the text is correct.
I tried like this...
word= "45 divided by 8"
rep=word.replace('divided by','/')
print(rep)
But i am getting 45 / 8 , not 5 as Remainder