Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Format Q
#1
Dear friends,
I'm new at the forum and I couldn't find how to open a thread. So I'm writing here hoping that someone can help me. I'm new at Python. I've downloaded 3.7.6. And as everyone does, I've started printing Hello World. :-)
I opened a notepad and wrote the code, then saved it as a py file. When I try to run it, a blank dos window appears,and disappears in a second. Isn't it possible to run the file from a .py file?
When I used the IDLE, I saved the file on a folder. When I try to run, the result is the same. But I can click the "edit it with idle" button and then I click run button.
Am I doing something wrong?
Reply
#2
don't click on the py file
open cmd window and type
python yourscript.py

check https://python-forum.io/Thread-How-to-Ex...ython-code
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020