Latest

 thumbnail

How to Append one List to Another List in Python

April 14, 2021

In this tutorial, we will learn how to combine Python lists in various ways. Append List to Another ListTo append o...

 thumbnail

How to Construct a List of Lists in Python

April 13, 2021

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...

 thumbnail

How to Remove a Trailing Newline in Python

April 13, 2021

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

 thumbnail

How to Reverse a Range in Python

April 10, 2021

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

 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 Divide in Python

April 01, 2021
 thumbnail

Get MIME Type with PHP

March 27, 2021