Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

23 total results found

Python Intro

Python

Why Python There are many languages to choose from, so why this one?  To answer that question you should first consider what type of development you plan to use it for and consider its benefits and drawbacks.  Python is an interpreted language which means i...

Python

A deep dive into the world of python

Programming

A look at different languages and implementations

Comments

Python The Basics

Utilizing comments throughout your code not only help keep your thoughts together but they also help the next developer understand what you are doing.  Their use should be quick and to the point but descriptive enough to be understood by someone who has never...

Variables

Python The Basics

Variables in Python are dynamically typed.  So what exactly does this mean?  In other languages you would first define a variable and assign it a type.  This type may be an integer, double, float, or string.  In Python you can define a variable name and im...

Operators

Python The Basics

Operators perform actions or evaluate variables. Arithmetic Operators + Addition x + y - Subtraction x - y * Multiplication x * y / Division x / y % Modulus x % y ** Exponentiation x ** y // Floor Division x // y   Assignment Operators...

Flow Control

Python The Basics

Controlling your application with these techniques enable full control of how your application behaves.  They flex the power of conditional operators.   if.. elif.. else.. this = true that = false if this == true: print('this is true') elif that =...

The Basics

Python

The core building blocks of Python

Functions

Python The Basics

Functions are used to compartmentalize code into smaller chunks that you can reuse throughout your code.  Ideally, you would break your code into pieces with logical, repeatable steps.  For instance, you would not place your entire program into one function ...

Data Structure

Python

How to store and modify related data

Lists

Python Data Structure

A list is a great way to store related data in one place.  The order of the items contained within are not sorted unless explicitly done in the code.  Various methods are employed to manipulate and iterate over this data. # Define a list like this cars = [...

Modules, Packages and Imports

Python

How to compartmentalize larger applications into functional blocks.

Tuples

Python Data Structure

Tuples are very similar to lists.  The major difference, tuples are immutable.  While lists have many functions to change the data contained within them, tuples prevent this action and will raise an exception if it is attempted.   # Tuple example someV...

Classes

Python

Object oriented way to group your code

Sets

Python Data Structure

Sets are unordered collections of items that contain no duplicates.  If a duplicate entry is attempted, the entry is ignored. # Pyhon Sets are unordered, unchageable, and do not allow duplicates # How sets are defined myset = {"apple", "banana", "cherry"...

Dictionaries

Python Data Structure

Dictionaries are likely the most used data type.  These store data in "key, value" pairs and like other data types, nested values of other types are also allowed. # Use dictionaries to store related values of which you wish to lookup later person = {"name...

Decorators

Python

Function inception

Modules

Python Modules, Packages and Imports

Modules are simply ".py" files that contain python definitions and functions.  Those functions can be later imported by other scripts.  They have their own private symbol table so names of the functions won't clash with your main script. This could be a fil...

Packages

Python Modules, Packages and Imports

Packages are usually a nested array of modules grouped together that represent an entire application.  They can be published to pypi which makes it installable using the pip command.  A very specific structure is defined.   Python Package directory struct...

Imports

Python Modules, Packages and Imports

Ok so you have your code in separate files.  You may have even installed a few packages to extend the functionality of the base python library.  To get these packages, modules, functions or other items into your application for use we have to explore the way...