Empire of Code (@empireofcode) header
Empire of Code (@empireofcode) profile picture

Space strategy game where coding is your extra weapon

Magrathea
Joined April 2015
Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)Photo by Empire of Code (@empireofcode)
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/
7
50
3
323
Empire of Code retweeted
docker run -it --rm docker/doodle:halloween2019
8
336
22
927
"The only way to learn a new programming language is by writing programs in it." - Dennis Ritchie
10
278
7
1,154
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/…
2
46
197
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
4
29
2
222
Empire of Code retweeted
Pair programming level 50
32
914
76
3,117
"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."
34
495
28
2,100
"If it doesn’t work, it doesn’t matter how fast it doesn’t work." - Mich Ravera
9
378
15
1,449