User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
I have created a .py file that turns on a LED, as in the tutorials on raspberrypi.org.
It is my understanding that I should be able to open the LXTerminal in Raspbian, type the following command and have the .py file execute properly.
The .py script executes fine in the python terminal so the script is good.
It is my understanding that when I type
sudo python led_on.pyin the LXTerminal it should also work.Are my statements correct? Should this command in the LXTerminal work?
sudo python led_on.py
I have edited to provide more information: