Template Python yang setara

name = John
surname = Smith
content = f"""
            <h1>Hi {name}!</h1>
            <br>
            <h2>{surname}</h2>
          """
MitchAloha