I am trying to send JSON request using Python, but I receive an error when I try to create JSON object using the following format:
data="{
"auth": {
"tenantName": "user1",
"passwordCredentials": {
"username": "user1",
"password": "pass"
}
}
}"
The error message is:
File "auth.py", line 5 data="{ ^ SyntaxError: EOL while scanning string literal