Python

How To Use Python Raw String — step-by-step Python tutorial on Progressive Robot

How To Use Python Raw String

URL: https://www.progressiverobot.com/python-raw-string/ Introduction You can create a raw string in Python by prefixing a string literal with r or R. Python raw string treats the backslash character (\) as a literal character. Raw string is useful when a string needs to contain a backslash, such as for a regular expression or Windows directory path, and […]

Read more
Python JSONPath Examples — step-by-step Python tutorial on Progressive Robot

Python JSONPath Examples

URL: https://www.progressiverobot.com/python-jsonpath-examples/ What is JSONPath? JSONPath is an expression language to parse JSON data. It's very similar to the XPath expression language to parse XML data. The idea is to parse the JSON data and get the value you want. This is more memory efficient because we don't need to read the complete JSON data. […]

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

Python hex()

URL: https://www.progressiverobot.com/python-hex/ Python hex() function is used to convert an integer to a lowercase hexadecimal string prefixed with "0x". We can also pass an object to hex() function, in that case the object must have __index__() function defined that returns integer. The input integer argument can be in any base such as binary, octal etc. […]

Read more
Logic Gates in Python - A Beginner-Friendly Guide — step-by-step Python tutorial on Progressive Robot

Logic Gates in Python – A Beginner-Friendly Guide

URL: https://www.progressiverobot.com/logic-gates-in-python/ This article comprehensively covers the different logic gates in Python. Logic gates are the most basic materials to implement digital components. The use of logic gates ranges from computer architecture to the field of electronics. These gates deal with binary values, either 0 or 1. Different types of gates take different numbers of […]

Read more
CHAT