You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from copy import deepcopy
|
|
#create a tuple
|
|
tuplex = ("HELLO", 5, [], True)
|
|
print(tuplex)
|
|
#make a copy of a tuple using deepcopy() function
|
|
tuplex_clone = deepcopy(tuplex)
|
|
tuplex_clone[2].append(50)
|
|
print(tuplex_clone)
|
|
print(tuplex) |