How to combine string subtypes in Python like bf"Hello, {name}!"

Viewed 431

How to combine string subtypes in Python 3? Under subtypes I mean f-strings, b-string, r-string, u-string... Is there a way to use both f and b string to insert variables with {} into binary string? I tried to use fb"Hello, {name}" and bf"Hello, {name}", but nothing worked and SyntaxError: invalid syntax raises.

0 Answers
Related