Python Programming

FunctionX Tutorials

01 - Introduction to Python

Python, Microsoft Visual Studio, Console/Terminal Applications, Compiler, Environment

This is an introduction to a computer language named Python, including how to install it and create (simple) console/terminal applications.

02 - Introduction to Variables

Visual Studio Code, keywords, str, input(), int(), float():, +

A variable is the primary means to store a value in the computer memory with the ability to access that value any time. A variable must be declared. There are various ways to do this.

03 - Topics on Variables

String Interpolation, Natural Number Display, Decimal Number Display

There are two primary techniques to display a value in Python. You can use string formatting or string interpolation. You also have the option of specifying a width (space) used to display the intended value.

04 - Introduction to Conditional Statements

if, bool, True/False, ==

A conditional statement consists of creating and checking a condition with the goal to make a decision based on the outcome. Conditional statements are formulated using some special keywords as Boolean operations.

05 - Logical Operators

<, >, <=, >=

Logical operations are symbols that are used to perform Boolean comparisons such as finding out whether two values are the same, are different, one is greater than the other, or one is less than the other.

06 - Topics on Conditional Statements

if, else, if...elif, if...elif...else, if...elif... elif, if...elif...elif and else

While logical operators are used to perform comparisons, computer languages like Python provide the ability to check and validate conditions. These operations are performed with appropriate keywords.

07 - Conditional Conjunctions and Disjunctions

if, elif, else , and, or

A conditional conjunction is used to combine two or more logical operations to find out whether at least one of them is True. A conditional disjunction is used to find out whether one logical operation is False.

08 - Introduction to Functions

Creating a Function, Creating many Functions, Calling a Function, Parameters, Returning from a Function, def

A function is a section of code that performs an action. You create a function by writing code in a Python module (a simple text-based document that contains code). After creating such a function, you can call it.

09 - Functions and Conditional Statements

True, False, Boolean Values and Functions, Conditional Return

Conditional statements can be processed in the body of a function. Also, that conditional processing can make a function produce a value that is validated based on one or more conditions.

10 - Introductory Topics on Functions

The Return Type of a Function, Named Arguments, Default Arguments, ->

There are many issues related to a function such as indicating the return type of a function, using the names of arguments, requiring arguments, or specifying the default values of arguments, etc.

14 - Introduction to Classes

Creating a Class, Creating an Object, Adding Attributes to a Class

Object-Oriented Programming (OOP) consists of creating relatively small objects and using them in an application. Those objects start from the concept of classes that describe such objects.

17 - Introduction to Modules and Packages

Module, Package, from, import, os, __main__, __init__.py

A module is the primary type of document in which you write Python code. A module is a regular text file with the .py extension. A module is also a means by which other entities make code available.

24 - Introduction to Pattern Matching

match, case

Pattern matching consists of comparing a variable to a fixed series of values to find a particular value that matches a value, and taking action when a certain value fits.


SAMPLE APPICATIONS

These are example applications that were created to apply some of the concepts taught in various lessons.

Loan Evaluation 1 (L08), Gas Company 1 (L06), Payroll Preparation 1 (L03), Payroll Preparation 2 (L05)
Straight-Line Method 1 (L05), Tax Evaluation 1 (L06), Tax Evaluation 2 (L07), Tax Evaluation 3 (L10)

FunctionX

FunctionX provides tutorials in various areas on computer science, including programming, database, Web design, etc.

Sample Applications

These are small applications that experiment with languages and programming environments.