Answers for "list set vs python"

2

List vs Set

List > Ordered and Indexed Collection, May contain duplicates
Set > Collection of Unique values, not ordered, no indexing
Posted by: Guest on November-28-2020
5

set vs list

Set is unordered
List is ordered collection, 
List allow duplicate elements
Set does not allow duplicates.
List can have multiple null elements
Set will allow only one null element.
The List can contain duplicate elements
Set includes unique items.
Posted by: Guest on December-05-2020

Browse Popular Code Answers by Language