I want to pass the value "How are you?"
of question
to body
so body
has the value as shown below.
question = "How are you?"
body = r’{
"uid": "xxxx’,
"msg": {
"msgType": "text",
"msgBody": {
"content": "How are you"
}
}
}
I tried replacing r
with fr
and placing the curly braces deep inside but did not seem to work. The purpose I am doing this because I need to hash the string so I can include the hashed string in a URL.