Created
February 15, 2019 14:40
-
-
Save solalatus/e59385ad137a15a8c218e53e8f36b8cc 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
my_dict={"key1":(1,2,13141), "key2":(1,2,4354365462)} | |
for k,v in my_dict.items(): | |
tmp = my_dict[k] | |
tmp = (tmp[0],tmp[1],"owerwritten") | |
my_dict[k]=tmp | |
print(my_dict) | |
assert my_dict["key1"]==my_dict["key2"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment