Python

Python f-strings - PEP 498 - Literal String Interpolation — step-by-step Python tutorial on Progressive Robot

Python f-strings – PEP 498 – Literal String Interpolation

URL: https://www.progressiverobot.com/python-f-strings-literal-string-interpolation/ Python f-strings or formatted strings are the new way to format strings. This feature was introduced in Python 3.6 under PEP-498. It's also called literal string interpolation. Why do we need f-strings? Python provides various ways to format a string. Let's quickly look at them and what are the issues they have. % […]

Read more
How To Use the Python Filter Function — step-by-step Python tutorial on Progressive Robot

How To Use the Python Filter Function

The Python built-in filter() function can be used to create a new iterator from an existing iterable (like a list or dictionary) that will efficiently filter out elements using a function that we provide. In this tutorial, we’ll review four different ways of using filter(): with two different iterable structures, with a lambda function, and with no defined function.

Read more
How To Set Up Object Storage with Django — step-by-step Python tutorial on Progressive Robot

How To Set Up Object Storage with Django

object storage is an object storage solution, ideal for unstructured data such as audio, video, images or large amounts of text. To learn more about Spaces and object storage, you can read through [An Introduction to the cloud provider…

Read more
How To Store and Retrieve Data in MariaDB Using Python on Ubuntu 18.04 — step-by-step Linux tutorial on Progressive Robot

How To Store and Retrieve Data in MariaDB Using Python on Ubuntu 18.04

In this tutorial you will connect a Python application to a database server using the MySQL connector. This module allows you to make queries on the database server from within your application. You’ll set up MariaDB for a Python environment on Ubuntu 18.04 and write a Python script that connects to and executes queries on MariaDB.

Read more
Python unittest - unit test example — step-by-step Python tutorial on Progressive Robot

Python unittest – unit test example

URL: https://www.progressiverobot.com/python-unittest-unit-test-example/ Today we will learn about python unittest and look through python unit test example programs. In previous tutorial we learned about [python zip function](/community/tutorials/python-zip-function). Python unittest Python unittest module is used to test a unit of source code. Suppose, you need to test your project. You know what kind of data the function […]

Read more
CHAT