Doss Academy
Skip to learning content

Lesson Notes — Setting Up IDEs & Development Environments (CodeHS, W3Schools, Python IDLE)

Course 3: Introduction to Programming / Unit 1: What Is Programming & Program Development Life Cycle (PDLC) / Lesson 3: Setting Up IDEs & Development Environments (CodeHS, W3Schools, Python IDLE)

Lesson overview

Programmers write code in a special workspace called an IDE, or Integrated Development Environment. An IDE puts the tools you need in one window so you can write, run, and fix your code without switching programs.

What is inside an IDE

  • Code editor: where you type your code.
  • Syntax highlighting: colors that mark keywords, text, and numbers so mistakes are easier to spot.
  • Console: the area that shows your program’s output and any error messages.
  • Run button: starts the execution of your program.
  • Debugger: a tool that lets you pause a program and look at it step by step to find bugs.

A plain text editor only lets you type. An IDE adds tools to run and debug as well. For languages like Java or C++, an IDE can also include a compiler. For Python, an interpreter does that job. Your workspace is the set of files and settings you are working in.

Three places to write Python

  • CodeHS: an online IDE that runs in your browser. You write code and click Run.
  • W3Schools: a website with Python lessons and a “Try it Yourself” editor for quick experiments.
  • Python IDLE: a simple IDE that comes with Python when it is installed on a computer.

Your first program

print("Hello, World!")
  1. Open a new file or editor window.
  2. Type the line exactly as shown, including the parentheses and quotation marks.
  3. Save the file with a clear name that ends in .py, such as hello_world.py. The file extension .py tells the computer it is a Python file.
  4. Run it. In CodeHS or W3Schools, click Run. In IDLE, choose Run, then Run Module, or press F5.
  5. Look at the console. You should see Hello, World!

File saving habits

  • Save before you run, and save often.
  • Use lowercase names with underscores instead of spaces, such as hello_world.py.
  • End every Python file with .py.
  • Save in the folder or drive your teacher tells you to use.

Common beginner errors

What you typed What happens Why
Print("Hello") NameError Python is case sensitive, so print must be lowercase.
print("Hello) SyntaxError The closing quotation mark is missing.
print(Hello) NameError Without quotation marks, Python thinks Hello is a name it should already know.

The last line of an error message usually names the problem, and the line number above it tells you where to look.

Check your understanding

  1. Name three features an IDE gives you that a plain text editor does not.
  2. Why does a Python file name end in .py?
  3. You run your program and see a SyntaxError. Where do you look first?

Use the Key Terms page for this lesson to build your glossary, and write each definition in your own words.

Discuss and submit in Google Classroom

Use this site to read, watch, and get shared learning materials. Keep completed work, questions, and comments in your class on Google Classroom.

Open Google Classroom

Choose your class and the assignment named by your teacher.

KDE student outcomes

Unit-level context for this lesson · Course 110201

View aligned outcomes (2)
  • #1 Demonstrate knowledge of the program development life cycle.
  • #2 Design, develop, compile, debug, test, run, and document programs in the language studied.

Alignment from Master Lesson Plans v3.5. These are instructional targets; completing a resource does not by itself establish mastery.