Created
March 12, 2014 09:09
-
-
Save betrcode/9503396 to your computer and use it in GitHub Desktop.
Convert a dict with integer keys to a stringified list of stringified keys in Python
This file contains hidden or 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
channels = {1: 'SVT1', 2: 'SVT2', 3: 'TV3', 4: 'Kanal 4'} | |
str(map(str, channels.keys())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compare Scala version: https://gist.github.com/betrcode/9503487