In a previous post, I talked about f-strings in Python. Briefly, f-strings are known as formatted string literals, which allow us to write more concise code to format strings in the way we want. Let’s take a quick refresh on the f-strings. In the code below, we declare a string variable name, and we call the print() function to log a message on the console.

#python #programming #artificial-intelligence #data-science

Understand repr() vs. str() in Python - String Representations in Python 
18.95 GEEK