What are advantages of a tuple over a list?
Answer / Raju Kumar Thakur
Advantages of tuples over lists include: 1) Tuples are immutable, which means they use less memory than mutable lists. 2) Tuples can be used for read-only data structures to prevent unintended modifications. 3) Tuples are often used in places where the order or identity of the elements is important.
| Is This Answer Correct ? | 0 Yes | 0 No |
How will you distinguish between numpy and scipy?
Whenever python exists why does all the memory is not de-allocated / freed when python exits?
What does mean in python?
What are the runtime errors?
What are the arithmetic operators that python supports?
Is python dictionary a hash table?
Does the functions help() and dir() list the names of all the built_in functions and variables? If no, how would you list them?
Which module is used to control the gpio in python?
How do I kill a python server?
What are the different file-processing modes with python?
Is html harder than python?
Mention what is the difference between Django, Pyramid, and Flask.