Table of Contents

Coding Basics

TO a large extent this will depend on what language is introduced first.

At times I have used CBM BASIC, PHP, Python or other languages to teach. The language itself is not so important because all the basic concepts are going to be the same. However, out of all the major languages, Python has the least amount of things you need to learn before you can look at a program. Python is not my first choice, But it is great for a basic programming course. However, I don't think that it is valuable to use python beyond the second year of a computer science course. Once you understand all the basic concepts, relearn them in C, C++ or Java. We'll worry about that later. For now, what do you think the following program does?

Example Python Code ex1.py

a = 1
b = 2
c = a + b

if c > a:
    print("C is bigger than A.")
else:
    print("C is not bigger than A!")

That is pretty much the only reason why Python is useful. You can start learning without getting confused by boilerplate code like “#include <stdio.h>”. Nobody knows what that means, but everyone knows what c = a + b means.

Just Get PyCharm

Just get PyCharm. PyCharm is good.

The Command Line

You won't loose much time with an editor like nano. You can use Linux, Mac, or WSL on Windows. Using the terminal can be almost as fast as using an IDE. I recommend an IDE because it is just faster. There is no need to use a general editor for a special document type. Still, I have taught kids using a text editor in a terminal and it does not impact their learning.

Online IDE

You can run python in the browser at websites such as:

I don't recommend an online environment, but you can do it if you just want “python here, now” or can't install anything.

All else considered, if you can, just use PyCharm.