Learn Before
Reference
Tuple Reference
0
1
Updated 2021-08-12
Tags
Python Programming Language
Data Science
Related
Tuple Operations
Tuple Reference
A programmer writes the following code snippet to update a collection of user roles. What will be the result when this code is executed?
user_roles = ('viewer', 'commenter', 'editor', 'admin') user_roles[1] = 'contributor' print(user_roles)Choosing the Right Data Structure for Constants
Choosing an Appropriate Data Structure