Python Tutorials

Latest

 thumbnail

Convert Unix Epoch/Timestamp to Datetime in Python

July 09, 2021

To convert a Unix timestamp to a formatted date in Python, use either the time or datetime package. Convert Epoch w...

 thumbnail

Unzip Files in Python

June 30, 2021
 thumbnail

Truncate Float in Python

June 29, 2021
 thumbnail

How to use Not Equal in Python

June 28, 2021

A not equal expression in Python will return True if the two values supplied are not the same and False if they are. In...

 thumbnail

How to Convert a String to a Date in Python

June 28, 2021

To convert a string to a date object in Python, import the datetime package and use the striptime() function. Pass the d...

 thumbnail

How to use the None Keyword in Python

June 23, 2021

The keyword None in Python is for defining a null object or variable. The datatype of something assigned None will be a...

 thumbnail

How to use Ternary Operators in Python

June 23, 2021

A ternary operator is a simplified version of a conditional expression, which is written on one line. Python Ternar...