What would be the equivalent of the string:
values = """
{
"exchange_code": "PLNX",
"exchange_market": "BTC/USDT"
}
"""
What the result is:
\ n "\ n" \ n "\ n" \ n "\ n" \ n "
Entering "PLNX" and "BTC / USDT" as variables, I'm trying some variations like the one below but I can not replicate the above result:
def equi_string(exchange,market):
values = """
{
"exchange_code": """+exchange+""",
"exchange_market": """+market+"""
}
"""
return values
'\ n {\ n "exchange_code": PLNX, \ n "exchange_market": BTC / USDT \ n} \ n'
This is for example "missing" in PLNX and BTC / USDT
How do I make the string return exactly the first example?