So I have a HTML file when I paste it in Python code in Multi_line String it gives me an KeyError '\n' while using KWargs**.
So the html file is like this:
<style>
body{
some-css:10px;
}
</style>
<body>
<h1>{param1}</h1>
<h2>{param2}</h2>
</body>
Python Code where it gives error:
html="""<style>
body{
some-css:10px;
}
</style>
<body>
<h1>{param1}</h1>
<h2>{param2}</h2>
</body>"""
print(html.format(param1=12,param2=22))