Basics Of Sets | Development | Online Course With Appy Pie Academy

Basics of Sets

Lesson Details:
September 17, 2020

Video Transcription: In this brief lecture I am going to tell you about another data structure in python that is set this video is brought to you by Appy Pie’s Academy, see a set is a collection of unordered values right these values are immutable that means these values cannot be changed the values of a set cannot be changed you can equate this property with that of tuples because in a tuple also we cannot change the values duplicate values are not allowed now this point is very important because as far as lists and tuples are concerned we people are allowed to have as many duplicate values as we want but in a set the values ought to be unique the set values are also called items the values are allowed to be heterogeneous that means the items belonging to the set they can belong to the different data types the last important point is the items in a set are placed inside curly braces right so if you remember in case of lists and tuples the items are placed in square brackets and parentheses respectively.

Course content