Trending

#Fstrings

Latest posts tagged with #Fstrings on Bluesky

Latest Top
Trending

Posts tagged #Fstrings

Preview
fstrings.wtf - Python F-String Quiz Test your knowledge of Python's f-string formatting with this interactive quiz. How well do you know Python's string formatting quirks?

How well do you know f-strings in #Python? πŸ˜₯

fstrings.wtf

On HN: news.ycombinator.com/item?id=4461...

On Lobsters: lobste.rs/s/cwmt11/do_...

On /r/Python: old.reddit.com/r/Python/com...

#Programming #Formatting #fStrings #Printing #Quiz

1 0 0 0
Screenshot of a web page displaying 'print(f"{1<5:1<5}")' and I guessed it result in 'True1' but the correct answer is '11111' and it gives the reasoning of "Well that's unexpected. The first 1 < 5 evaluates to True, but for some reason booleans render like integers when padded since they are a subclass of int. So we're padding out to 5 characters, all of which are prefixed by 1."

Screenshot of a web page displaying 'print(f"{1<5:1<5}")' and I guessed it result in 'True1' but the correct answer is '11111' and it gives the reasoning of "Well that's unexpected. The first 1 < 5 evaluates to True, but for some reason booleans render like integers when padded since they are a subclass of int. So we're padding out to 5 characters, all of which are prefixed by 1."

What is wrong with you #Python? #fstrings

fstrings.wtf

0 0 0 0
Preview
Python 3.14 Beta: F-strings, WebAssembly, & uv Updates | AI News Discover the exciting new features in Python 3.14 beta, including powerful template strings (f-strings), WebAssembly, and the fast uv package installer!

AIMindUpdate News!
Supercharge your Python! πŸš€ Learn about the exciting new template strings in Python 3.14 beta and explore the future of WebAssembly! #Python314 #Fstrings #PythonNews

Click here↓↓↓
aimindupdate.com/2025/05/31/p...

0 0 0 0
Video

Python Mistake to Avoid Using Print Statements #PythonTips #CodingBasics #CleanCode #FStrings
Learn how to write cleaner and more efficient print statements in Python by avoiding multiple print calls

0 0 0 0

What's not to love about Python3? Right? Show your love by snagging this awesome "I <3 f'{strings}'" tee!



#python #geeky #geekpride #ilovepython #fstrings

1 0 0 0