Code: Select all
>>> a = "Drako"
>>> b = "micropython"
>>> f"Hello, my name is {a}, I'm new with {b}."
"Hello, my name is Drako, I'm new with micropython."
Code: Select all
>>> a = "Drako"
>>> b = "micropython"
>>> f"Hello, my name is {a}, I'm new with {b}."
"Hello, my name is Drako, I'm new with micropython."
Yes. This is commonly called "f-strings". There is a PR to add this but it needs a little bit more work. I'm hoping it gets added soon.