What is the difference between list and tuples?
Tuples | Lists |
---|---|
Items in a tuple are surrounded by a parenthesis () | Items are surrounded in square brackets [ ] |
They are immutable in nature | Lists are by nature immutable |
There are 33 available methods in it. | There are 46 methods here. |
Keys can be created using Tuples. | No, keys can’t be created using these |
BY Best Interview Question ON 31 May 2020