Python f-strings: What they are, and how to use them

preview_player
Показать описание
Want to create a string that includes one or more variables? Or Python expressions? Then you should use f-strings, which have been part of Python since version 3.6. In this video, I introduce f-strings, how they compare with earlier techniques for interpolating values, and a number of ways you can use them.

Note that the sound quality for this video isn't as good as I usually like; my apologies!
Рекомендации по теме
Комментарии
Автор

Thanks for the it cleared all my doubts

rasibwani
Автор

print(f'{first_name=}')

output:
first_name=Reuven

SaleelAhsan