parsing dictionary to JSON I used the following code to pass a json string as a parameter in requests.post method,
import json
data = {'Key': 'Value',&quot;title&quot;: &quot;hello world&quot;}
# get string with all double quotes
json_string = json.dumps(data) 
json_string

output is
'{&quot;Key&quot;: &quot;Value&quot;, &quot;title&quot;: &quot;hello world&quot;}'

How to remove the single quotes around the dictionary without using
print(json_string). So that I can pass this in requests.post like this
results=requests.post(url=url,data=json_string)

If I give the json_string without removing single quotes, it gives me internal server error.
You don't pass a string to requests.post's data argument, you pass a dictionary. So basically, instead of converting your dictionary to a string, you just do:
requests.post(url, data=data)

[EDIT]: From my experience, it is better to leave requests take care of everything, instead of using requests.post(url, data=data), you can use requests.post(url, json=data), which will format the header correctly.
See here for the doc.