L Linh Chi New member Sep 20, 2021 #1 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
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 Thu Ha New member Sep 20, 2021 #2 Answer: c Explanation: The command del a deletes the entire tuple. Upvote 0 Downvote