This lesson concludes Python 3’s f-Strings: An Improved String Formatting Syntax. You’ll watch a review of everything you have learned in this course.
Congratulations, you made it to the end of the course! Make it stick: Mentor AI will check what you’ve got down, help you build something with it, and find your #1 takeaway to share in the discussion.
Or go straight to the discussion section and share your #1 takeaway and how you’ll put your new skills to use.
Jon David on Oct. 7, 2021
Thanks for this. I will be using f-strings from here on.
Feel free to laugh, my way of doing things before was to do like this:
print(‘This is the start ‘+str(variable_name)+’ and this is the end.’)
If you ask me, this is more like f-strings in terms of how it reads than either %-formatting or the .format method. Maybe that is why I was intuitively drawn to it!