This is the data I am working on:
bank_details = {
"bank_details_top_level" :
("""
{"name":"Shyam"},
{"password":"thisissecret"},
{"account_id":"93847518"}
"""),
}
I want to pass in the account_id
value, i.e., 93847518
as a variable but since it is inside a string, I decided to use string formatting. However, because I am already using {}
inside, I keep getting errors.
Is there any way I can pass in data into this string?