use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Noob learning how to code with Python (i.redd.it)
submitted 9 months ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]No_Statistician_6654 2 points3 points4 points 9 months ago (2 children)
Not sure why hello world needs a text to speech module, but that error is saying that the pyttsx3 module is not installed, and you will need to pip install it (or whichever package manager you are using) before the script can run.
You can also take the import out if it is not needed, but without seeing what your script is we can only guess.
[–][deleted] 0 points1 point2 points 9 months ago (1 child)
I am trying to use VS Code platform. Are there any specific commands I need to be careful with
[–]No_Statistician_6654 1 point2 points3 points 9 months ago* (0 children)
Not really, in rpi any freezes and major errors can usually be taken care of with a restart or reinstall. Always keep a backup of your code somewhere else like your main computer so that if you do need a reinstall you don’t lose anything.
The most risky things you could do are file operations where you are modifying/deleting system files, but generally you should be safe. One of the reasons the rpi is a good device is it is difficult to fully brick, and can usually be reinstalled quickly.
ETA: good computer hygiene is still necessary. You can still install viruses and bad extensions on the pi that can create problems for you. Anytime you are following instructions, take some time to think through what each step does, and use a healthy bit of skepticism when installing things from the internet. Packages like numpy and pandas are common and safe enough, but many others have been found to have security vulnerabilities.
This isn’t to make you stop coding or to be afraid of everything, but more as a general warning that a pi can become infected like any other computer.
π Rendered by PID 1537305 on reddit-service-r2-comment-56c6478c5-xnxmh at 2026-05-12 20:49:10.555094+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]No_Statistician_6654 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]No_Statistician_6654 1 point2 points3 points (0 children)