Python

How to Read Properties File in Python? — step-by-step Python tutorial on Progressive Robot

How to Read Properties File in Python?

URL: https://www.progressiverobot.com/python-read-properties-file/ We can use jproperties module to read properties file in Python. A properties file contains key-value pairs in each line. The equals (=) works as the delimiter between the key and value. A line that starts with # is treated as a comment. Installing jproperties Library This module is not part of the […]

Read more
How To Use Python-Markdown to Convert Markdown Text to HTML — step-by-step Python tutorial on Progressive Robot

How To Use Python-Markdown to Convert Markdown Text to HTML

Markdown is a markup language commonly used to simplify the process of writing content in an easy-to-read text format, which a software tool or programming library can convert into HTML to display in a browser or another writing program. In this tutorial, you will install the Python-Markdown library, use it to convert Markdown strings to HTML, convert Markdown files to HTML files, and use the Python-Markdown command line interface to convert Markdown to HTML.

Read more
Python slice string — step-by-step Python tutorial on Progressive Robot

Python slice string

URL: https://www.progressiverobot.com/python-slice-string/ Python string supports slicing to create substring. Note that Python string is immutable, slicing creates a new substring from the source string and original string remains unchanged. Python slice string Python slice string syntax is: str_object[start_pos:end_pos:step] The slicing starts with the start_pos index (included) and ends at end_pos index (excluded). The step parameter […]

Read more
Python sum() — step-by-step Python tutorial on Progressive Robot

Python sum()

URL: https://www.progressiverobot.com/python-sum/ Python sum() function is used to get the sum of numbers of an iterable. Python sum() Python sum() function syntax is: sum(iterable[, start]) start is an optional number with default value of 0. If start is provided, then the sum of start and all the numbers in the iterable is returned. Python sum() […]

Read more
CHAT