F-string format specifications are INSANELY POWERFUL

F-string format specifications are INSANELY POWERFUL

2.653 Lượt nghe
F-string format specifications are INSANELY POWERFUL
Their name might be a little formal, but these awesome tricks add so much power and usability to f-strings! If you've ever used functions to format text in the past, you need to watch this. 00:00 - Intro 00:59 - The format specification mini-language 02:02 - Padding and aligning text 03:41 - Showing and hiding the sign of a number 04:42 - Zero-padding numbers 05:58 - Positive coercion and alternative forms 06:44 - Adding thousands separators 07:39 - Rounding numbers 08:04 - Displaying different numerical "types" 10:06 - Combining many formatting options 11:40 - Outro — ~ Hotlinks ~ Join the Discord ► https://discord.gg/5vVgQpK Check out the GitHub ► https://github.com/Carberra ~ Setup ~ Visual Studio Code ► https://youtu.be/PBQspYkkksU Terminal ► https://youtu.be/4RuGK3w6Mbs Desk/recording gear ► https://kit.co/Carberra PC build ► https://uk.pcpartpicker.com/list/TmzGYN ~ Affiliations ~ ChatLLM and CodeLLM ► https://chatllm.abacus.ai/phxDqZSGjZ Codecrafters (40% off any plan) ► https://app.codecrafters.io/join?via=parafoxia Keeper Password Manager (30% off your first year) ► https://keeper.io/r/EX4FB1C #python #coding #howto