Your question is Deep Clone Without Libraries. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Netcracker Digital Platform configuration data can contain deeply nested dictionaries and lists. Implement a function that creates a fully independent clone without using external libraries.
The input is a Python value composed of dict, list, str, int, float, bool, and None. Dictionary keys are strings. Mutable objects may be shared by multiple fields or may reference themselves indirectly.
Your clone must satisfy these requirements:
copy.deepcopy or any external library.The function should return the cloned value.
def deep_clone(value):