concept IDLE in category python

appears as: IDLE, IDLE
Hello World! Third Edition

This is an excerpt from Manning's book Hello World! Third Edition.

In the Start menu, under Python 3.7, you’ll see IDLE (Python 3.7). Click this option, and the IDLE window will open. It should look something like the window below.

IDLE is a Python shell. A shell is basically a way of interacting with a program by typing text, and this shell lets you interact with Python. (That’s why you see Python Shell in the title bar of the window.) IDLE has some other things besides the shell, but we’ll get to all that in a minute.

IDLE checks your program before it even tries to run it. If IDLE finds an error, it’s usually a syntax error. Syntax is the spelling and grammar rules for a programming language, so a syntax error means you’ve typed something that isn’t proper Python code. Here’s an example:

print("I love pizza!")
print("pizza " * 20)
print("yum " * 40)
print(Buuuuurp!")      #1

There’s a missing quotation mark between print( and Buuuuurp!". If you tried to run this program, IDLE would pop up a message saying “SyntaxError.” Then you’d have to look at your code to see what’s wrong. IDLE’s editor highlights (in red) the place where it found the error. It might not be exactly where the problem is, but it should be close.