Last active
September 17, 2017 17:23
-
-
Save ajilo297/9b8e41541fcafcbb730e24505e5073db to your computer and use it in GitHub Desktop.
Ordering List in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = [0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1] | |
a = [0] * a.count(0) + [1] * a.count(1) |
ajoyoommen
commented
Sep 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment