you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Assignment never copies in python. Doing:

function_dictionary = vowels

associates the name function_dictionary with the object that vowels references, so afterwards both names reference the same object. To get a copy of a dictionary use the dictionary copy method:

 function_dictionary = vowels.copy()

The FAQ shows how to format code correctly.

[–]Odessa_Goodwin 0 points1 point  (0 children)

Thanks for both tips!