I am running the ESP32 DevKitC, and I’d need a random number between 1 and 15. So I wrote the following:
print random.randint(0, 5)
But this fails at compilation time:
error] Syntax error [invalid syntax (, line 10)] in [C:\Users\heikki.hietala\Random_tester\main.py] at line 9
I have located the Random.py file, and put that in the same folder ad my Main.py, but that one gives me a syntax error somewhere in the middle of the file.
Any help in sorting this out would be much appreciated.