Add items to a set ?

0 Arnab Banerjee · December 28, 2014
How do i add items to a set? Seems like the 'append'  function is not working here.

Post a Reply

Replies

Oldest  Newest  Rating
+1 Vaggelis Theodoridis · December 28, 2014
set.add(something)
or
set.update({something})
0 Arnab Banerjee · December 28, 2014
Thanks Mate :)
  • 1

Python

107,188 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator