Coding Fundamentals and Patterns

This module contains the fundamentals of coding, serving as either a crash course for brand new beginners or a refresher for experienced developers. It covers a broad spectrum of foundational topics, starting with an introduction to computer programming and its applications, followed by a practical guide on installing and using a language. The course progresses through essential programming concepts like variables, Boolean algebra, logic gates, and basic math operations. Additionally, it delves into more complex topics like control flow, function calling, dictionaries, and understanding mutable vs. immutable objects, providing a comprehensive overview of core programming principles and patterns.

Section Menu

How do I use this section?

1. LESSON

What is Computer Programming and What Are Its Applications?

Definition When we ask ourselves a question such as what computer programming is, it's tempting to just look up the definition. We all sort of know what it is, but we want to get it precisely right. Let's not do that this time - let's build the definition from scratch. So, if you were to ask a layman what programmers do, they might say th...

2. LESSON

How to Learn Python: Installation and Basics

In this lesson, we will provide an introduction to installing and working with Python, with a focus on the following key points: Installation and setup of the language on your machine. An overview of some basic features of Python programming with code examples. Python is one of the most p...

3. LESSON

Introduction to Code Variables and Assignment

In this lesson, we will discuss the use of variables and assignment operators in Python, with a focus on the following key points: What are variables and the assignment of variables in the Python programming language? Working with variables and assignment of variables in an introductory programming l...

4. LESSON

Boolean Algebra and Logic Gates

The field of mathematics known as Boolean algebra deals with logistical operations on binary variables. In other words, the functions and variables in Boolean algebra can have only one of two values – 0 or 1, where 0 represents False, and 1 represents True. Boolean algebra has been used mostly in computer programming languages. Set...

5. LESSON

Initializing Variables and Basic Math Operations

In this lesson, we will discuss basic elements in programming, with a focus on the following key points: What are variables, and how are they used in a program? Learn to work with math operations in an introductory programming language; Python. _This is a general purpose tutorial for multiple la...

6. LESSON

Constants and Literals: When and How to Use Them

In the realm of programming, constants and literals are fundamental building blocks that play a crucial role in constructing robust and reliable software applications. Understanding the distinction between these two concepts and employing them effectively is essential for aspiring software engineers. public class Main { public stati...

7. LESSON

What are Strings and String Operations?

In this lesson, we will discuss one of the basic types in programming languages, with a focus on the following key points, What are strings, and common string operations? Working with strings in one of a few introductory programming languages. _This is a general purpose tutorial for multiple lang...

8. LESSON

Introduction to Arrays and Array Operations

In this lesson, we will discuss the concept of arrays, with a focus on the following key points, What are arrays, and how are they implemented? Working with array operations in Python. For the Javascript version of this lesson, [please click here] (https://algodaily.com/lessons/introduction-array...

9. LESSON

How to Find the Minimum and Maximum Value in An Array

In this tutorial, we'll learn to find out the minimum and maximum values in an array using the following techniques. Built-in Methods Linear Search Method Divide and Conquer Single Loop Trick/ Comparison in Pairs We'll be using a few different languages to solve the problem. So without further ado, let's get started! ![Min and Max in Ar...

10. LESSON

Control Flow: If/Else and Try/Catch Statements

In this lesson, we will discuss the flow of execution of programs, with a focus on the following key points, How can the execution flow of a program be controlled? Working with if/else and try/catch statements to establish control flow in programs. For the Javascript version of this lesson, [plea...

11. LESSON

Loops and Iterations in Programming

In this lesson, we will learn about loops and iterations in programming, with a focus on the following key points, What are iterations in programming? Working with loops and related concepts in Python. For the Javascript version of this lesson, [please click here] (https://algodaily.com/lessons/l...

12. LESSON

Calling Functions: Calling, Parameters, Returning

In this lesson, we will learn about functions in a program, with a focus on the following key points, What are functions, and why do we use them? Working with function parameters, return, and call statements. _For the Javascript version of this lesson, [please click here] (https://algodaily.com/...

13. LESSON

Dictionaries and Key-Value Stores

In this lesson, we will learn about a new type of data structure called dictionaries, with a focus on the following key points, What are dictionaries and how are they used? Working with dictionaries in Python. For the Javascript version of this lesson, [please click here](https://algodaily.com/le...

14. LESSON

Understanding Mutable vs. Immutable Objects

Before discussing the difference between mutable and immutable objects, it's important that we properly define what an Object is in Object-Oriented Programming (OOP). This will serve as one of the foundations/basic concepts to fully understand the topic. So to start, an Object is a piece...