Room light monitoring using z score analysis

i copied the code from the bolt website but i am getting an error on line 27

In line 27, change the code to as follows:
print(“this is the error:”+str(data[‘value’]))

This is because data[‘value’] returns an integer and python does not allow concatenation of a string and an integer.

Hope this helps! :smiley:

rather just add a comma after “This is the value” it would look something like
print(“this is the value”, data[“value”]) also as mentioned as by the previous comment python doesn’t allow concatenation of a string and an integer. the + sign cannot be used anywhere
Also finally please mark any of these 2 replies as the solution so it doesn’t show up in the unsolved section. Since I am pretty sure this has solved your problem

i tried this. it didnt work

thanks dude. it worked!

1 Like