Introduction to finding the minimum or maximum value in a list in Python This is a classic computer science problem that students are asked to solve in a range of programming languages. You are asked to find the array or list element with the maximum value or the...
Python Blogs
What is the best IDE for Python?
So what is the best Python IDE and what makes a good IDE anyway? Do you need an IDE to program in Python? No you certainly don't need an IDE (Interactive Development Environment) to program in Python. For example on Mac and Linux you can work in the terminal and...
How to install Python, WSGI, Flask & Apache on Centos 8 and get your first Python Web App up and running.
Installing Python 3 on Centos 8 sudo dnf update sudo def install python3 You can now run Python, with the Python3 command, check the version information and then use exit() to quit. Create a Python Virtual Environment for your Flask project Keep in mind that the user...
Python Programming Cheat Sheet & Tips
Introduction to Python Tips & Tricks On this page I capture all the little Python tips & tricks which I discover while working with Python. They tend to be the little snippets which are too small for a full blog post. Don't use Print for debugging There is a...
How to create a Python Dictionary of Array lists.
In this brief blog I show you how to create a Python dictionary of arrays / lists, or in fact any other Python object.
How to set-up command line arguments in Microsoft Visual Studio (VS Studio Code)
This article explains how to set-up command line arguments in Microsoft Visual Studio (VS Studio Code)
MacOS / Linux: How to start a new Python 3 project using VENV Virtual Environment
How to setup a Python VENV Virtual Development environment on your Mac for a new Python project. Includes using MS Visual Studio Code editor.
How to create a running data summary in Python
Sometimes you need to keep a running summary in an application, for example the number of cars, bikes, lorries, buses and vans to go over a bridge in a 24 hour period. You don't always want to log away each data item to the database or other data structure as you are...