Python Tutorials

Latest

 thumbnail

Check If a Value is a Number Not a String in Python

October 26, 2021

To check a value is a number data type in Python and not a string, we can use the Python type() function with some logic...

 thumbnail

if not in list Python

October 13, 2021

To check if a value is not in a list in Python, we can write an if statement using a not in expression like this: i...

 thumbnail

Python: Capitalize the Beginning of Every Word in a String

October 13, 2021

In this tutorial, we will learn how to capitalize the first character of every word in a string in Python. Capitali...

 thumbnail

How to Comment in Django Templates

October 01, 2021

In many cases, it makes more sense to comment out code in Django templates so it does not render on the front-end in tem...

 thumbnail

Calculate Euclidean Distance in Python

October 01, 2021

In math, the Euclidean distance is the shortest distance between two points in a dimensional space. To calculate th...

 thumbnail

Python List of Lists

September 28, 2021
 thumbnail

Python Convert List to Set

September 26, 2021
 thumbnail

tostring() Equivalent in Python

September 20, 2021
 thumbnail

Max Int in Python

September 18, 2021
 thumbnail

Get Class Name in Python

September 18, 2021
 thumbnail

Python Print Variable

September 16, 2021