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
925
"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,116
"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,099
"If it doesn’t work, it doesn’t matter how fast it doesn’t work." - Mich Ravera
9
378
15
1,449
Empire of Code retweeted
#Python's alternative increment operator is affectionately known as the space-invader operator. >>> score = 10 >>> score -=- 1 >>> score 11
15
92
15
465
Fixes: Retina and Browser Resize. More is coming. :)
1
Battle description have been upgraded buff.ly/1KixXqa Battle events have been refactored buff.ly/1Kiy2ds .
1
Sharing ideas around coding games. Yes, CiO and EoC can be something bigger buff.ly/1L8gvzp
1
Balance, new missions, bug fixes will be released at Feb the 3th. Stay tuned
1