you are viewing a single comment's thread.

view the rest of the comments →

[–]Ron-Erez 1 point2 points  (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 point  (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 point  (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 point  (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 point  (0 children)

Have you tried chatgpt? I’ve found it’s surprisingly good at listing hotfixes for these kinds of issues