Which of the following statements is false?
a. The += augmented assignment statement can be used with strings and tuples, even though they’re immutable.
b. In the following code, after the two assignments, tuple1 and tuple2 are two different copies of the same tuple object:
In [1]: tuple1 = (10, 20, 30)
In [2]: tuple2 = tuple1
In [3]: tuple2
Out[3]: (10, 20, 30)
c. Concatenating the tuple (40, 50) to tuple1 from Part (b) creates a new tu-ple, then assigns a reference to it to the variable tuple1—tuple2 still refers to the original tuple.
d. For a string or tuple, the item to the right of += must be a string or tuple, re-spectively—mixing types causes a TypeError.
b. In the following code, after the two assignments, tuple1 and tuple2 are two different copies of the same tuple object:
In [1]: tuple1 = (10, 20, 30)
In [2]: tuple2 = tuple1
In [3]: tuple2
Out[3]: (10, 20, 30)
You might also like to view...
You specify the content of an inline frame with the src attribute
Indicate whether the statement is true or false
Declare an array called names that is appropriate for storing 100 strings of length 19 (not counting the null character).
What will be an ideal response?