Python Regular Expressions
Python uses re library for regular expressions. re comes with standard python installation. Regular expressions is a very big topic. This page only covers the basics of how to search…
Simply Explaining Technology
Python uses re library for regular expressions. re comes with standard python installation. Regular expressions is a very big topic. This page only covers the basics of how to search…
Unit testing functionality is built into Python3. Following is a very simple example: Save this file as mycode.py. Save the following code as mycode_unittest.py When you run the unit test…
This page shows how to work with text files using Python3 code. Following is a sample txt file we will be using. Lets called it stocks.txt Reading from File You…
NumPy is a python library that makes it easy to perform mathematical and logical operations on arrays. It provides high performance n-dimensional array object and tools to work with the…
Note: The instructions are for python3.x on Ubuntu There are several different libraries you can use to easily work with Excel. I will be covering openpyxl. Other options include xlsxwriter,…
The following code prints the current date: First we import datetime library. now() function gets the current date and time from the server. now.year, now.month, and now.day prints current year,…
The following code downloads content from a web address: First, we import the urllib library. Third line defines the request. Fourth line read the actual content. Fifth line decodes utf-8.…
This publication is for programmers who want to learn python. It is assumed that you know what variable, arrays, data structures, functions, etc. already are. You only need python’s syntax…
Installation These instructions are for Mac OS: First install homebrew. Never use sudo for brew. Install Python3. The installation comes with pip3. Install cx_Oracle, the library that allows python3 to…
If you don’t already have MySQL installed, install it with the following commands (mac only): Run the following commands to start or stop mysql. Start MySQL before proceeding: To see…