Total 397 Posts

## Python: Check if Array/List Contains Element/Value

### Introduction

In this tutorial, we'll take a look at how to check if a list contains an element or value in Python. We'll use a list of strings, containing a few animals:

animals = ['Dog', 'Cat', 'Bird', 'Fish']


### Check if List Contains Element With for Loop

A simple and rudimentary method

## Seaborn Line Plot - Tutorial and Examples

### Introduction

Seaborn is one of the most widely used data visualization libraries in Python, as an extension to Matplotlib. It offers a simple, intuitive, yet highly customizable API for data visualization.

In this tutorial, we'll take a look at how to plot a Line Plot in Seaborn - one of

## Python: Check if Variable is a String

### Introduction

Python is a dynamically typed language, and the variable data types are inferred without explicit intervention by the developer.

If we had code that requires a string to work correctly but lacked type hints, which are optional, how can we avoid errors if the variable used is not a

## Python: Check if Variable is a List

### Introduction

Python is a dynamically typed language, and the variable data types are inferred without explicit intervention by the developer.

If we had code that needed a list but lacked type hints, which are optional, how can we avoid errors if the variable used is not a list?

In this

## Guide to Flask-MongoEngine in Python

### Introduction

Building a web app almost always means dealing with data from a database. There are various databases to choose from, depending on your preference.

In this guide, we shall be taking a look at how to integrate one of the most popular NoSQL databases - MongoDB - with the

## Python: Check if Variable is a Dictionary

### Introduction

Variables act as a container to store data. A developer can use type hints when creating variables or passing arguments, however, that's an optional feature in Python, and many codebases, old and new, are yet to have them. It's more common for a variable in Python to have no

## Python: Get Number of Days Between Dates

### Introduction

In this tutorial, we'll take a look at how to get the number of days between two dates in Python.

We'll be using the built-in datetime package, that allows you to really easily work with datetime objects in Python.

### Creating a Datetime Object

As datetime is a built-in module,

## Python: How to Remove a Key from a Dictionary

### Introduction

In this article, we'll take a look at how to remove keys from Python dictionaries. This can be done with the pop() function, the del keyword, and with dict comprehensions.

### Remove a Key Using pop(key,d)

The pop(key, d) function removes a key from a dictionary and