Topics

Python

About this topic: Articles tagged __TAG__

Showing 1744 articles

Topics

Articles

Showing 1744 articles

How-tos How to Convert Hex to Base64 in Python We can use the codecs, or the base64, or the binascii modules to convert a hex string into a base64 string in Python. How-tos How to Fix the TypeError: Object of Type 'Int64' Is Not JSON Serializable We will demonstrate how to resolve the object of type int64 is not JSON serializable error in Python. How-tos How to Fix SSL CERTIFICATE_VERIFY_FAILED Error in Python This tutorial discusses how to Fix SSL CERTIFICATE_VERIFY_FAILED Error in Python. How-tos How to Split String Based on Multiple Delimiters in Python How to split a string into a list in Python 2.7/Python 3.x based on multiple delimiters/separators/arguments or by matching with a regular expression. It includes regular … How-tos How to Check a String Contains a Number in Python Python any function together with str.isdigit could check whether a string contains a number or not; re.search function checks a string contains a number even faster than the above … How-tos How to Count the Occurrences of an Item in a One-Dimensional Array in Python We could use collections to count occurrences of an item in a Python array, or use unique, count_nonzero and bincount function in NumPy to get the number of occurrences. How-tos How to Convert String to Float or Int in Python This tutorial introduces how to convert string to float or int in Python 2.7 and Python 3 How-tos How to Convert Bytes to String in Python 2 and Python 3 This tutorial introduces how to convert bytes to string in Python 2.7 and Python 3, including decode and chr methods in Python 3.x. How-tos How to Calculate Modular Multiplicative Inverse in Python This article explores how to calculate the modular multiplicative inverse in Python using the Naive Iterative Approach, Modular Exponentiation, the Extended Euclidean Algorithm, … How-tos How to Remove an Element From a Python Dictionary This tutorial introduces how to remove an element from a Python dictionary How-tos How to Access Environment Variables in Python This tutorial article introduces how to read, change and append environment variables in Python. How-tos How to Deduplicate a List in Python This tutorial will introduce how to deduplicate a list in Python How-tos How to Initiate 2-D Array in Python This tutorial introduces how to initiate 2-D array How-tos How to Access the Index in 'Foreach' Loops in Python This tutorial article introduces how to access the index in foreach loop in Python. How-tos How to Check the Python Version in the Scripts This tutorial introduces how to check which Python version is interpreting the scripts. How-tos How to Merge Two Dictionaries in Python 2 and 3 This tutorial introduces how to merge two dictionaries in Python 2 and 3. How-tos How to Check Whether a String Contains Substring in Python This tutorial introduces multiple ways to check whether a string contains a specific substring How-tos How to Convert String to Lowercase in Python 2 and 3 It demonstrates how to convert a string or an unicode string to lowercase in Python 2 and 3 How-tos How to Find Files With a Certain Extension Only in Python This how-to article demonstrates how to find the files with a certain extension only in Python, and also introduces how to find such files in not only the directory but also its … How-tos How to Convert String to Datetime in Python It demonstrates how to convert string to datetime in Python How-tos How to Get the Average of a List in Python This tutorial will demonstrate how the average of a given list is obtained in Python using statistics.mean How-tos How to Find Maximum Value in Python Dictionary The tutorial introduces how a key with maximum value in a dictionary is obtained in Python. How-tos How to Get the Day of the Week in Python The tutorial describes how to get the day of the week from the given date in Python. How-tos How to Remove Whitespace From a String in Python It introduces different methods of removal of whitespace in a string. You could strip the whitespace either with Python string split, replace method, or use Python regex functions.

← All topics