Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code help
#6
When you start IDLE the first screen you see is the IDLE shell. You can type code in the shell, and it is very much like running python and typing in the interactive interpreter. The left margin of the shell displays ">>>" or "...". ">>>" indicates this is a new statement. "..." indcates this is a continuation of the previous statement. If you are writing a python program, this is not the tool to use.

What you want to do is click on the "File" menu and select "New File". This opens a new window. In the left margin of this window you will see line numbers (1, 2, 3) instead of the interactive python prompt (>>> or ...). Type your program in this window. To run the program (or module), you first need to save the file. Once saved you can run the program from IDLE, or you can run using the python executable.

IDLE is not a good software development tool. I suggest you do some research and find a better tool for your platform.
Reply


Messages In This Thread
Code help - by piturcastef - Dec-06-2024, 10:23 AM
RE: Code help - by deanhystad - Dec-06-2024, 12:47 PM
RE: Code help - by piturcastef - Dec-09-2024, 05:56 PM
RE: Code help - by deanhystad - Dec-09-2024, 06:04 PM
RE: Code help - by piturcastef - Dec-09-2024, 06:50 PM
RE: Code help - by deanhystad - Dec-09-2024, 08:22 PM
RE: Code help - by piturcastef - Dec-10-2024, 05:46 AM
RE: Code help - by ndc85430 - Dec-10-2024, 05:53 AM
RE: Code help - by piturcastef - Dec-10-2024, 10:30 AM
RE: Code help - by ndc85430 - Dec-10-2024, 05:17 PM
RE: Code help - by piturcastef - Dec-11-2024, 06:21 AM
RE: Code help - by deanhystad - Dec-10-2024, 05:32 PM
RE: Code help - by ndc85430 - Dec-11-2024, 10:05 PM

Forum Jump:

User Panel Messages

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