Created
April 1, 2013 20:26
-
-
Save earthling-shruti/5287470 to your computer and use it in GitHub Desktop.
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
key_list = [4, 2, 3] | |
value_list = ["delta", "alpha", "gamma"] | |
for i in range(len(value_list)): | |
value_list[i] = str(key_list[i]) + value_list[i] | |
print value_list[i] | |
value_list.sort() | |
key_list.sort() | |
print [value for value in value_list] | |
for i in range(len(value_list)): | |
value_list[i] = value_list[i].replace(str(key_list[i]), "") | |
print [key for key in key_list] | |
print [value for value in value_list] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment