Dictionary Copies Exercise
Question 1 of 5
You need to create user profiles from a template without affecting the original:
template = {'role': 'user', 'permissions': ['read'], 'active': True}Which approach correctly creates independent profiles?
Select all that apply
alice_profile = template.copy(); alice_profile'username' = 'alice'
alice_profile = template; alice_profile'username' = 'alice'
alice_profile = dict(template); alice_profile'username' = 'alice'
alice_profile = {**template, 'username': 'alice'}