To create a dynamic variable in Python, use a dictionary. Set the key as the name of the variable and the value as the c...

Read

To create a list of lists in Python, append them to a list like this: list_1 = [1,2,3] list_2 = [4,5,6] list_3 = [7...

Read

To remove a trailing newline (\n) on a string in Python, use the rstrip() function from the str package like this: ...

Read

To create a reverse range in Python pass a negative value as the third argument of the range() function. This value is t...

Read

XOR (exclusive or) is a bitwise operator that compares the binary representation of two numbers. In Python, the XOR...

Read

while True in Python executes a loop infinitely until a break statement is run when a condition is met. To demonstr...

Read

To convert a string into a hexadecimal representation, first convert it into an integer using the Python int() function...

Read

To replace a string in a list, loop through each item in the list and replace the value using the Python .replace() func...

Read

To convert letters to their corresponding number in the alphabet, use the python ord() function and subtract 96 from the...

Read

To create a list of empty strings in Python, use a for loop and add empty strings to the list using the .append() functi...

Read

The divide operator in the Python programming language is / (forward slash). Pass the numbers to divide on the left and...

Read

To look for a file by its name in Linux, use the find command. It will recursively scan the directories on your system a...

Read

In this tutorial, we will learn how to create a list of the alphabet in Python. Lowercase AlphabetThe first step is...

Read

PIP is the de facto package manager for the Python programming language. It allows you to easily install third-party pac...

Read

A file MIME type is a two-part identifier for file formats. The two parts are separated by a / (forward slash) and descr...

Read

An IP address is a unique public-facing codename given to every device that can access the internet. The IP system works...

Read

To get the extension of a file in PHP/Laravel, use the PHP pathinfo() function. The first argument is the name of the fi...

Read

To get the full name of a file without its extension in PHP use the pathinfo() function. Pass the file name as the first...

Read

In this tutorial, we will learn how to create a video from a collection of images using FFmpeg. This will be useful for...

Read

Sometimes it is necessary to convert strings with mixed casing into lower or upper case. In this tutorial, we will learn...

Read

Keeping packages up-to-date is an important part of maintaining a secure Linux system and ensuring you have the latest p...

Read

In this tutorial, we will learn how to remove the last character from a string in JavaScript. With the JavaScript s...

Read

In this tutorial, we will learn how to clear the different cache's stored by your Laravel app so that the changes you ma...

Read

Latest

 thumbnail

How to Create a Dynamic Variable Name in Python

April 13, 2021

To create a dynamic variable in Python, use a dictionary. Set the key as the name of the variable and the value as the c...

 thumbnail

How to use the XOR operator in Python

April 07, 2021

XOR (exclusive or) is a bitwise operator that compares the binary representation of two numbers. In Python, the XOR...

 thumbnail

How to use while True in Python

April 07, 2021

while True in Python executes a loop infinitely until a break statement is run when a condition is met. To demonstr...

 thumbnail

How to Convert a String to Hex in Python

April 07, 2021

To convert a string into a hexadecimal representation, first convert it into an integer using the Python int() function...

 thumbnail

How to Replace a String in a list in Python

April 07, 2021

To replace a string in a list, loop through each item in the list and replace the value using the Python .replace() func...

 thumbnail

How to Divide in Python

April 01, 2021
 thumbnail

Get MIME Type with PHP

March 27, 2021