GeistHaus
log in · sign up

Python's F-String for String Interpolation and Formatting – Real Python

realpython.com

Python's f-strings provide a readable way to interpolate and format strings. They're readable, concise, and less prone to error than traditional string interpolation and formatting tools, such as the .format() method and the modulo operator (%). F-strings are also faster than those tools!

5 pages link to this URL
The Problem With LangChain

LangChain is complicated, so it must be better. Right?

2 inbound links article en post ChatGPTText GenerationLangChainLLMsEmbeddingsVector SearchMachine Learning
Rounding floating point numbers with Python

Rounding numbers in Python is quite common. There might be a situation where values must only be rounded to 3 decimals or some arbitrary number. Using the built-in function round() is handy but changes the original value.

0 inbound links website en
Raphael Kabo

Raphael Kabo's personal website and writing on programming, poetry, and academia.

1 inbound link en CC BY 4.0
14 Advanced Python Features

A collection of advanced Python features that I've found interesting, underrated, or unique - as someone who's seen a lot of Python code.

3 inbound links article en tech Python