Variable replace string need help. Anyone help me please?

I want to replace variable value like below. I have python script like this.

print("hi")

I want to replace "hi" value from variable.

Does this have anything to do with App Inventor?

2 Likes