in Python by
Q:
What is the difference between list and tuples?

2 Answers

0 votes
by

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

0 votes
by

Lists are mutable, but tuples are immutable.

Click here to read more about Python
Click here to read more about Insurance

Related questions

0 votes
asked Jun 24, 2020 in Python by Robindeniel
0 votes
0 votes
0 votes
asked Dec 31, 2020 in Python by SakshiSharma
0 votes
asked Feb 21, 2020 in Azure by Emile_01
+1 vote
asked Feb 13 in Python by SakshiSharma
0 votes
asked Aug 29, 2020 in Python by Robindeniel
...