I have a string like this:
Variable = ''
S = """
This is my """+Variable+""" in my string"""
def fun():
Variable = 'Changed Variable'
NewS = """
First sentence. """+S
Desired output:
First sentence. This is my Changed Variable in my string
What I get now: First sentence. This is my in my string
is I put the variable in the string, and then use that as a string, how do I update the variable in that string later?