Getting error in Assignment 3


Please tell me what is wrong in this code.

Hi,
Recheck the indentation you have used in the code. The error says that there is inconsistency in the indentation. It could be because you may have used tabs and spaces interchangeably.

i used only tabs for indentation . after this getting same error
please tell me how to fix it??

U can try updating the previous packages once before going towards the code.

REQUIRED PACKAGES

sudo apt-get update

sudo pip3 install boltiot

sudo pip3 install pyOpenSSL ndg-httpsclient pyasn1

sudo pip3 install ‘requests[security]’


now i am getting new error . please check it

Try removing, “Exception as e” from the code.
If you still get the indentation error, try re-indenting the code from the beginning.

Hi @kheemchandrasingh,

You have missed on closing bracket ) in the print statement, just before the exception line.

Do let me know in case you need any other information.

yes sir i added closing parenthesis. and it worked
thanks sir