Hope someone can help with this syntax error from this curl statement in python 3 running on a pi. I am using the following general format to pass a variable to a home automation controller
curl -u USER:PASSWORD http://192.xxx.x.xx/rest/vars/set/1/3/16
This is the error I get. For security purposes, I have not shown my address in the following statement from which I get the syntax error.
My username is admin and my password is test
curl-u admin:test http://192.xxx.x.xx/rest/vars/set/2/77/16 ^
SyntaxError: invalid syntax