Showing: 1 - 10 of 28 RESULTS
code printed on screen with green text
Python

Creating CLI Utilities with Python

If you do any sort of automation, you have probably done a fair amount of work using the CLI on your computer.   This is applicable regardless of platform. If you use Python you might have asked yourself how you could start making your own command line utilities to help you in your daily tasks. …

Girl using computer and writing on notepad
Programming Python

What is the python requirements.txt?

If you have browsed any python projects on Github or elsewhere, you have probably noticed a file called requirements.txt  This requirements.txt file is used for specifying what python packages are required to run the project you are looking at.  Typically the requirements.txt file is located in the root directory of your project. If you open …

Red apple sitting on wooden picnic table
Python

Troubleshooting Python on MacOS

MacOS ships with Python 2.7 Pre-installed. This is helpful when you are just getting started with Python since you can just start using it with no setup. Unfortunately Python 2.7 is going out of support in 2020, so we all need to get to upgrading to Python 3. When you start upgrading Python, there is …

chalk board with the words test
Python

Python Unit Testing using pytest

Unit testing is the act of testing a small unit of your code. Generally, this means you are testing a function or a class in isolation. If you are doing this unit testing manually, you simply run your function, then check and make sure it gave you the expected output. This is what you have …

laptop next to a pineapple and some small pumpkins
Python

Python data types explained

In python, almost everything is an object. This includes variables like String and Integers and containers like lists and dictionaries. Given that everything is an object, what are data types? Data types are simply how you classify your objects. If you have a an object with the type of String, then that object will have …

man drawing flowchart on whiteboard
Javascript Python

What is JSON? (JavaScript Object Notation)

Javascript Object Notation, or JSON for short, is a data structure that uses only human-readable text to transfer or store information. It is very popular, especially in the context of web technologies, for transferring data between applications.JSON allows you to import and export data in a structured manner without doing a lot of work to …

puppy in teacup with red dots
Python

Python Objects and Classes

Python is an Objected Oriented programming language. This means that Python has a data type called objects. Today we will discuss what objects are; how are objects relate to classes; and when you should use objects and classes. What are Objects? Objects are containers that hold a collection of attributes and functions. As an example, …

cups full of pens, pencils, paint brushes, and rulers
Python

Working with Python Collections

A collection in Python is an object that contains other objects. You can also think of it as a container or a bucket. There are many different kinds of collections contained within the containers module in Python. Today, we will discuss the different kinds of Python Collections/Containers. How to use the different kinds of Containers. …

two guys arm wrestling at a bar in black and white
Python

Mutable vs Immutable objects in Python

There are two types of objects in Python, Mutable and immutable objects. Mutable objects are more flexible in that these objects can be changed in place. Immutable objects are more static and cannot be changed without allocating a new object of the new type or with the new value. In some languages, almost all variables …