
In short: take this course to change the way you think about computer programming and improve your thinking.
This section explains what a computer program in simple terms and with everyday objects.
Key statements:
A computer program is a collection of instructions that a computer needs to follow in order to complete a specific task or to solve a particular problem.
One can compare a computer program to a food recipe required to prepare a particular kind of food. If you take it to your personal life, the list of steps you take to complete a task at work is your program.
Now, in order for the computer to understand the instructions, you need to speak its language. A programming language is a set of formal constructs or statements and expressions following a set of rules called syntax. Based on those rules, meanings (called semantics) are attached to the expressions in order to complete a task.
Examples of programming languages are C, Python, JavaScript, Java, and many more.
A refresh on arithmetic operators as addition, subtraction, multiplication, division and modulo.
The concept of variables and datatypes are fundamental to understanding how a computer program works.
Key statements:
A variable is a reference to a storage location with or without data.
Some programming languages (statically typed languages) require the declaration of the type of a storage. On the other hand, dynamically typed languages infer the types of data.
Some statically typed programming languages are C and Java.
Some dynamically typed programming languages are Python and JavaScript.
Learn how operators act on operands. Explore arithmetic, assignment, logical, and relational operators with examples like x equals five, plus equals, minus equals, times equals, division equals, and modulo equals.
explore how logical operators or and not work, and the and operator, with a bit of boolean algebra, showing zero as false and one as true through simple truth examples.
Learn relational operators in Python, comparing operands with equal, not equal, greater than, less than, and greater than or equal to, less than or equal to, yielding true or false.
Install the Python interpreter on Windows or Mac using the executable installer from python.org, then start writing your first Python program.
Install Python and set up Visual Studio Code to create and run your first Python program. Practice arithmetic, variables, print, comments, and basic comparison and logical operators.
Explore how if conditionals evaluate boolean expressions to true or false, guiding program flow via a flow chart and true/false branches, with Python examples of if, else, elif, and indentation.
Explore how loops control program flow in Python, compare for and while loops, and explain iteration with clear examples and termination conditions.
Learn how Python dictionaries store key-value pairs, access elements by keys, and mutate them by adding or changing values and storing lists or other dictionaries.
Learn how reserved keywords in programming languages have special meanings and cannot be used as variable or function names, causing syntax errors in Python when misused.
Explore built-in Python functions like print, sum, len, type, upper, lower, and strip, and learn how user-defined functions perform custom tasks.
Explore how to format Python output by combining strings and variables using concatenation with + and the str() function, or by using the format method with curly braces.
Learn how to read user input in Python with the input function, assign values to variables, print responses, and cast strings to numbers for calculations.
Learn how to handle files in Python by opening with the open function, using read, write, and append modes (r, w, a, r+, w+, a+), and closing to release resources.
Learn to write a Python program that accepts a whole number from the keyboard, checks if it is prime, and prints the result to the console.
Develop a Python program that reads a word from the keyboard, enforces a minimum length of two characters and no spaces, and reports whether the word is a palindrome.
“Everyone in this country should learn to program a computer because it teaches you to think.” - Steve Jobs.
Many people view computer programming as a complex subject reserved for the very smart. It is actually not so if you know how to think about programming.
In this course called "Programming Thinking", we will explain programming concepts in very simple terms in order to build your understanding and to help shape the way you think about computer programs.
Understanding computer programming and being able to write basic computer programs will help:
to boost your problem solving and reasoning skills
make stand out in your job application
you to easily understand complex systems
you to start automating repetitive tasks using Python
to build your confidence
create an entry point into the vast amounts of jobs in software development
This course starts off with explanations of programming concepts (using everyday concepts) from very basic level to an intermediate level. Concepts are further illustrated using the Python programming language. We have chosen to use the Python programming language since it is one of the most popular and easiest programming languages in existence.
In the end, we solve a few exercises together in order to solidify our understanding. The course is further extended through the forum where you can ask me to clarify concepts that might still not be clear to you.