Python - Constructors and Object Initialization
How can you modify this constructor to accept a list of hobbies and store a copy to avoid external changes?
class User:
def __init__(self, name, hobbies):
self.name = name
self.hobbies = hobbies