Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How do you open a python file with terminal?
I'm just starting to learn how to program (like, I started earlier today) and I've been fooling around with some tutorials on python and mac terminal. in one of the exercises, i'm supposed to make a text file then save it as ex1.py, then type "python ex1.py" into the terminal and get an output of the text. I did this and got an error message in one of my lines so i went back and fixed it, making sure everything is perfect. When i tried again to run the program with no mistakes in text all i get back is my pwd, No error messages, and no program. i am very confused, someone help?
but when issue the command "open ex1.py" i get the program perfectly in a new IDLE window. I just can't get it to show me the program in terminal
1 Answer
- David DLv 79 years agoFavorite Answer
That is how you do it. If there is no output then presumably the program doesn't output anything (and since you say it is supposed to, you have presumably made some error there).