Skip to content

Instantly share code, notes, and snippets.

@RyanBreaker
Created August 24, 2012 05:30
Show Gist options
  • Select an option

  • Save RyanBreaker/3445869 to your computer and use it in GitHub Desktop.

Select an option

Save RyanBreaker/3445869 to your computer and use it in GitHub Desktop.
towns = ['1', ['1.1', ['1.1.1', '1.1.2', '1.1.3'], '1.2', ['1.2.1', '1.2.2']],
'2', ['2.1', '2.2'], '3']
"""
1
|\
| 1.1
| | \
| | 1.1.1
| | |
| | 1.1.2
| | |
| | 1.1.3
| 1.2
| \
| 1.2.1
| |
| 1.2.2
2
|\
| 2.1
| |
| 2.2
3
"""
@RyanBreaker
Copy link
Author

I've been thinking about it and I should be able to figure it out, but it might take a bit, depending on how long you'll wait before merging dev into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment