Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Idan shami
Idan shami
13,251 Points

what is issubset()? what is a super set and a sub set?

I didn't understand it in the video, Kenneth mentioned it only in the end of the video.

thanks (:

2 Answers

Josh Keenan
Josh Keenan
19,652 Points

Hi, what video are you referring to exactly?

Idan shami
Idan shami
13,251 Points

python collection - set math, but the question is " what is issubset()? what is a super set and a sub set? "

Josh Keenan
Josh Keenan
19,652 Points

So a superset is a set which includes another set or sets, and a subset is a set of things where all the elements are contained within another set.

Idan shami
Idan shami
13,251 Points

can you give an example for each of them? Thank you (: