You are on page 1of 1

You create a set with You create a list with

the set() constructor or the list() constructor or


Creation curly braces. square brackets.

A set cannot have


duplicate values. All A list can have duplicate
Duplicate values must be unique. values.

A set is unordered. When


you print the items in a A list is ordered. When
list, they don't come in printed, the items in the
the order you arranged list are returned in the
Order them. same order put in.

You can't change the


items of a set, but you You can change the
can add to the set and items in a list and you
Mutation remove from it. can add to the list.

You might also like