Skip to content

Instantly share code, notes, and snippets.

@solalatus
Created February 15, 2019 14:40
Show Gist options
  • Save solalatus/e59385ad137a15a8c218e53e8f36b8cc to your computer and use it in GitHub Desktop.
Save solalatus/e59385ad137a15a8c218e53e8f36b8cc to your computer and use it in GitHub Desktop.
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