>>> 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?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Is the following Python code valid?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!