Last active
March 9, 2016 18:21
-
-
Save bennuttall/4652024 to your computer and use it in GitHub Desktop.
Code snippets from ASCII Bar Charts blog post
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
2000 || | |
2001 ||||||||| | |
2002 |||||||||| | |
2003 ||||||||| | |
2004 |||||||||||||| | |
2005 ||||||||||| | |
2006 |||||||| | |
2007 |||||||||| | |
2008 |||||||||||||| | |
2009 ||||||||||||||||||| | |
2010 |||||||||||||||| | |
2011 ||||||||||||||||| |
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
for y in years: | |
print y, years[y]*'|' |
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
years = {2000: 2, 2001: 9, 2002: 10, 2003: 9, 2004: 14, 2005: 11, 2006: 8, 2007: 10, 2008: 14, 2009: 19, 2010: 16, 2011: 17} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment