Question: Is it possible to modify the dictionary while iterating over it using values ( ) ? Question 3 0 options: No , modifying a dictionary
Is it possible to modify the dictionary while iterating over it using values
Question options:
No modifying a dictionary during iteration can lead to a runtime error.
Yes, it's always safe to modify a dictionary during iteration.
Yes, but only if removing items.
Yes, but only if adding new items.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
