Pyrfecter logo Pyrfecter

Lint, format, and modernize your Python code to make it positively perfect.

Input
Output

Linting & Analysis

Modernize your string formatting with f-strings

Introduced in PEP-498, f-strings are "formatted string literals", or "formatted strings", with a syntax like f"{variable_name}":

>>> name = "Pat"
>>> f"Hello, {name}"
Hello, Pat

Why is this way of formatting strings better for your code? Well, as Real Python says:

Not only are they more readable, more concise, and less prone to error than other ways of formatting, but they are also faster!

So, what are you waiting for? Pyrfect those strings!