Is the following Python code valid? [code] >>> a=(1,2,3,4) >>> del a [/code]

Linh Chi

New member
Is the following Python code valid?
Code:
>>> a=(1,2,3,4)
>>> del a
A. No because tuple is immutable
B. Yes, first element in the tuple is deleted
C. Yes, the entire tuple is deleted
D. No, invalid syntax for del method
 

Tìm kiếm

Back
Top