Using Lists in Python

Why use lists in Python?Lists are used in Python to assign multiple values to a single variable. Lists are one of four arrays that exist in Python, the other three are called ‘Sets’, ‘Tuples’ and ‘Dictionaries’. Lists are identified by their square brackets. The reason to use Lists is that they are mutable. This meansContinue reading “Using Lists in Python”

Which IDE/Text Editor for Python Development?

There are a number of great options available when it comes to programming anything in Python, or indeed any programming language.If you are using a Windows machine for Python, you will no doubt have Idle installed as this is bundled in with the installer.Idle offers many great features, in that it has a ‘code asContinue reading “Which IDE/Text Editor for Python Development?”

Creating a Random Character Generator using Python

Following on from the creation of Rock, Paper, Scissors last week where we used the random module to create random plays by the computer. Today, we are going to use random again to create a randomly generated string of text, much like those of random password generators that are used by Password Management Systems.When theContinue reading “Creating a Random Character Generator using Python”

BMI_Calculator.py

I have been playing around with if and elif statements and created this BMI Calculator.There are a few different elements that needed implementing to get this to work properly. Firstly, the program needs variables creating that will take input from the person using the program. I have used a mixture of integers and floats. However,Continue reading “BMI_Calculator.py”

Creating ‘Rock, Paper, Scissors’ using Python

In order to create ‘Rock, Paper, Scissors’ we’re going to need to make use of the loop functions that are available in Python. Firstly, we are going to need to call upon the ‘random’ module which will allow us access to the ‘randint’ method. I will explain why this is important, a bit later. OnceContinue reading “Creating ‘Rock, Paper, Scissors’ using Python”

Creating Mad Libs using ‘F-strings’

What is F-String?An F-String is a formatting concept that allows us to call upon Python functions within strings of text. F-string stands for ‘Formatted string’.  The use of F-string is only available in Python version 3.6 and above. Previously to this, you would have had to use .format() instead. A more up to date versionContinue reading “Creating Mad Libs using ‘F-strings’”

Automating Desktop Applications with Python

Automating Desktop Applications with Python This tutorial follows on from last week’s automating web browsers with Python. If you have not seen that one yet, you can check it out at the following link: The same as last week, I’m going to be using Visual Studio to write the program, but you can use anyContinue reading “Automating Desktop Applications with Python”

Automating Web Browsers with Python

If you use the same tabs in a Web browser every day, it can seem menial and time consuming opening each tab individually. So, today I’m going to show you how to open all of the tabs you use with one double click. To start off with, we’re going to need to open a textContinue reading “Automating Web Browsers with Python”

Getting Started with Python in Linux

Getting started with Python in Linux There is no need to install Python on Linux as it comes preinstalled. After opening the Terminal, the first thing to do is to create a folder that will contain all of the Python files.To create a folder named Python, type ‘mkdir Python’. After creating the Directory, we areContinue reading “Getting Started with Python in Linux”