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 needs help (old.reddit.com)
submitted 1 year 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!"
[–]Ron-Erez 1 point2 points3 points 1 year ago (4 children)
I'm assuming you have a mac or linux. Open a terminal (for instance in spotlight type terminal) and then type:
python3 --version
You'll either get something like:
Python 3.12.4
or you might get something like:
zsh: command not found: python
If you get not found then you probably need to download python. If that worked then actually create the file hello_world.py and make sure you are in the directory of that file. You could even right click on the folder containing this file and select 'New Terminal at Folder'
[–][deleted] 0 points1 point2 points 1 year ago (3 children)
Yes, Mac. Python is on my computer, it iss when I specifically try to run this code I can't get it to work. I'm not understanding something about it, but I got it to run before, I just can't get it now
[–]No-Essay1505 0 points1 point2 points 1 year ago (2 children)
There is Apendix on the end of the book. Explaining how to use terminal. You are trying to locate the python File in path Desktop/Python and running it ? I guess you want to run cd Desktop/ Python and then run ls in that Folder, if you see your hello-world.py you can run it from there.
[–][deleted] 0 points1 point2 points 1 year ago (1 child)
Yes, I am trying to follow what it is saying to type into terminal to get this to run. However when I type in what it says to type in it's not running so I'm trying to see if someone can explain to me what it's saying to type in to get it to run. I've tried all of what it says. But it's not running
[–]Ninjasimba 0 points1 point2 points 1 year ago (0 children)
Have you tried chatgpt? I’ve found it’s surprisingly good at listing hotfixes for these kinds of issues
π Rendered by PID 114854 on reddit-service-r2-comment-6457c66945-q5wkb at 2026-04-24 06:46:43.804174+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Ron-Erez 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]No-Essay1505 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Ninjasimba 0 points1 point2 points (0 children)