Empire of Code retweeted
#Python tip: Hard-coded constants should use the optional underscore as a thousands separator:
>>> x = 1_234_567
Also, you can output numbers in that format:
>>> f'{x:_d}'
'1_234_567'
Or with commas:
>>> f'{x:,d}'
'1,234,567'
1/
Empire of Code retweeted
I wrote something about getting started contributing to CPython paper.dropbox.com/doc/Contri… #pycascades
Empire of Code retweeted
"The only way to learn a new programming language is by writing programs in it." - Dennis Ritchie
Empire of Code retweeted
This is a big one!
Mypy 0.730 is out, with prettier, colored output and error code support, along with many other fixes and improvements mypy-lang.blogspot.com/2019/…
Empire of Code retweeted
Today, we found a small bug in IDLE during Intro #Python class, and I took that opportunity to show how to file bug report.
Tomorrow, I expect the learners to be delighted when they see the bug has already been fixed 🤩
bugs.python.org/issue38077
Empire of Code retweeted
"Python is designed to deliver an experience that is simple and easy to use. This is only possible through a combination of advanced technologies and sophisticated engineering."
Empire of Code retweeted
"If it doesn’t work, it doesn’t matter how fast it doesn’t work." - Mich Ravera






