Assume the variable dct references a dictionary. Write an if statement that determines whether the key 'Jon'
Question:
Assume the variable dct references a dictionary. Write an if statement that determines whether the key 'Jon' exists in the dictionary. If so, assign the value of 'Jon' to a key of 'John', and then delete 'Jon' and its associated value.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: