python - # Error: ImportError: No module named samples ...
stackoverflow.com › questions › 11217801Jun 27, 2012 · Save the code without the last two lines as lightIntensity.py, and in the python shell, (start python, on the command line, IDLE, whatever you're using), and after the prompt, type import lightIntensity to import your script, and lightIntensity.changelightIntensity (1.2) to call the function in the script. Alternatively, you can fix the script ...