Please paste your entire code here
@sohammethul10 please share SS of your code.
- Python is very particular about formatting and you must ensure that the formatting is done properly.
- Just check the line number where the error is popping up.
- Check if there is any formatting error or typo that is causing interpreter to stop in that line or the previous line. I think the code is misspelt as resonse.status. Most likely it should be response.status. Please check.
- Check if all the dependent modules are imported in the beginning of the code and the correct version of the library has been downloaded in your compuer.
Hope that helps.
In the line above the error, please close the braces of the print line after the function call str(response)
print(“Response received from Twilio is”,str(response))
Hope this helps.
in the line you have written
response = sms.send_sms("The current temperature value is: "+str(sensor_value$
which is wrong you have to close the bracket at the end of this line for example:
response = sms.send_sms("The current temperature value is: "+str(sensor_value))
and then again below that line you have also missed the closing braces for that line
which should be like this
print("Response received from twilio is "+str(response))
i hope that will solve your query. Have a nice day.
@sohammethul10 you are supposed to close the print statement on line 21.
"print(“Response received from Twilio is: " + str(response))”.