Been encoding videos for the new https://t.co/WD9j4Mq2LM site. This video is going in the hero section. It's a teaser of Textual. I suspect we'll update this video from time to time when new features come online.
Also: you can also use variables (or expressions?!) for the formatting information!
More details and explanation at https://t.co/ByodBdtpXm by @the_compiler
Based on how much I see written about string formatting, we definitely need more resources explaining it.
Ideally (one day...) the official Python docs will include a section that demonstrates string formatting in more a digestible way (❤ the docs, but some bits are too dense)
Python is a versatile & popular programming language.
You can use it for all sorts of projects, from web dev & data analysis to machine learning & AI.
In this guide @codergirl1991 shares some free Python courses for beginners to get you started coding.
https://t.co/4NFd8KSVHa
I'd sitting on an article on string formatting for weeks without realizing https://t.co/cbanI57MRs would exist just before I published it! 😆
https://t.co/x1glfQFr3O is long while https://t.co/cbanI57MRs is short. I plan to link to both in my teaching materials. 💓
🐍📰 Manage Your To-Do Lists Using Python and Django
This step-by-step project will teach you how to use Django's class-based views to build a powerful app while dramatically reducing your development time
#python https://t.co/4DnNGV8H4O
String formatting in #Python lets you left-, right-, or center-justify a value. You can specify the fill character to use. The syntax is colon, fill-char, <^>, width:
Enjoyed this Python string formatting thread?
1. Follow me (@treyhunner) for more Python tips 🌠
2. Retweet the below tweet to share this with others 🔃
3. Reply or quote-tweet with your (new?) favorite f-string feature ⤵️
Get full access to our large (and growing) collection of online Python tutorials and in-depth training materials for your whole team!
With over 1,900 lessons, and new content published weekly, your team will always find something to boost their skills. https://t.co/XOxYij4OCZ
#Python's string formatting syntax can be customized in some very complex but very powerful ways.
In its most basic form, you can inject a variable into a string:
>>> name = "Trey"
>>> text = f"My name is {name}"
Or an expression:
>>> more = f"It has {len(name)} letters"
A couple of years ago, I wrote a #Python script to archive my arXiv voting records from @astrocrash's VoxCharta for #astro papers.
It is now my go-to repo to test out new tools and libraries such as @willmcgugan's Rich and @tiangolo's Typer.