Video description
In Python 3.6, a new method of formatting strings was introduced - f-strings. In this video, Aaron Maxwell covers what f-strings are and how you can work with them for common string formatting tasks.
Aaron takes you through progressively more complex examples of using f-strings to output your text. For developers working with Python 3.6 and higher, or planning to in the future, it is crucial to understand how f-strings compare to percent formatting and the str.format() method. You will learn:
- How to write simple Python f-string expressions
- How your str.format() knowledge transfers to f-strings
- When you can use f-strings and when you can not
Other videos in this series:
How do I handle missing dictionary keys in Python?
Table of contents
Product information
- Title: What are f-strings in Python and how can I use them?
- Author(s):
- Release date: June 2017
- Publisher(s): Infinite Skills
- ISBN: 9781491994863
You might also like
book
Python vs. Go
Comparing Python with Go is a bit like comparing an SUV with a sports car: they …
video
How do I handle missing dictionary keys in Python?
When working with Python dictionaries, sometimes your code has to deal with keys that may not …
book
Building Android Apps in Python Using Kivy with Android Studio: With Pyjnius, Plyer, and Buildozer
Start building Python-based Android applications using Kivy with Android Studio. Through in-depth examples, this book teaches …
video
Pros and Cons of Python vs Rust
Learning the differences between Rust and Python and when to use each.