Wednesday, March 17, 2021

Tuples are immutable, But still we can change items

 Tuple is a immutable, but still we can change or append the elements to the list present in the tuples.

Example: 





No comments:

Post a Comment

Element wise operation on LIST vs ARRAY

The use of arrays over lists: You can write  vectorised  code on numpy arrays, not on lists, which is  convenient to read and write, and con...