Objectives

Students will be able to:

  • understand the purpose of an IDE
  • use a cloud-based IDE
  • set up and use a desktop-based IDE
  • run and test a basic program

Machine code

Machine code is made up of instructions and data that are all binary numbers ie 101010111010100010101010100111100110101.

Integrated Development Environment

Here is some code. It is written in a high level programming language - Python. It is stored in a text file. Download it. Can you run it?

We need a special application to help us:

  • write code in the English language
  • debug code in the English language
  • translate the English language into so that a computer can run it

An Integrated Development Environment - IDE will allow us to do all of these things!


IDE - in the cloud

There are many IDEs that are available online.

Copy and paste the code into this online IDE and run it. Does it work?

You can create an account and save your work.

Another great option is replit.

IDE - on your desktop

The problem with relying on a cloud-based IDE is that you always need a reliable Internet connection to write, compile and run your code.

It is good practice for a programmer to have an IDE on his/her computer.

This course will be based on Python and a recommended IDE would be IDLE

Install Python

To check if you already have Python3 on your computer, open Terminal and type python3. You should get a confirmation if you have it or a message that you don't!

If you don't have it - download it and install it. Click here. Make sure you choose Windows or MAC OS or whichever operating system your computer uses.

IDLE should install with Python and an IDE called IDLE.

After installing, search for and open IDLE.

Coding Activity #1 - debugging

Copy and paste the above code into a new IDLE file and run the program.

Does it work?

Can you debug it to get it to work? hint: Google the error and see if you can figure out what is wrong. Or use AI...

Coding Activity #2 - Adaptation

If the user's name is Jack, the program will output Hi Jack! otherwise it just outputs Hi!

Submission

Submit your .py file as instructed by your teacher.

Tags

integratedsyntax development environment machine code translate type errorcompile