How to Escape HTML in Python?

Summary: In this tutorial, you will learn to escape HTML code using the Python programming language. Escaping HTML replaces HTML-reserved characters in an input string. For example, escaping <body> results in &lt;body&gt;. It…

0 Comments

How to List Subdirectories in Python?

Summary: In this tutorial, you will learn to list subdirectories using the Python programming language. Listing subdirectories lists all directories contained in a parent directory along with the parent directory.…

0 Comments

How to Ignore Case in Python?

Summary: In this tutorial, you will learn to compare two strings case-insensitively (i.e., ignore case) in Python. When comparing two strings, Python interprets uppercase and lowercase letters differently. For example,…

0 Comments

How to Compare Types in Python?

Summary: In this tutorial, you will learn to compare data types of different objects and variable in Python. Comparing types determines whether the types of two or more objects are…

0 Comments

How to Edit File in Python?

Summary: In this tutorial, you will learn different ways to edit, write, append text to a file using Python programming language. In Python, you can easily append, delete or overwrite…

0 Comments

How to Interpolate Strings in Python?

Summary: In this tutorial, you will learn two different ways to interpolate strings in Python. Interpolation is the process of evaluating strings that contain one or more placeholders for substitution…

0 Comments