Message102513
I guess giving fruit, the set of unique fruit a different name makes it more clear. Comments alignment fixed.
>>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
>>> print(basket)
{'orange', 'bananna', 'pear', 'apple'}
>>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> uniquefruit = set(fruit) # create a set without duplicates
>>> uniquefruit
{'orange', 'pear', 'apple', 'banana'} |
|
Date |
User |
Action |
Args |
2010-04-07 02:50:44 | l0nwlf | set | recipients:
+ l0nwlf, georg.brandl, rhettinger, jmarter, flox, autometa |
2010-04-07 02:50:44 | l0nwlf | set | messageid: <1270608644.21.0.146307537478.issue4570@psf.upfronthosting.co.za> |
2010-04-07 02:50:42 | l0nwlf | link | issue4570 messages |
2010-04-07 02:50:42 | l0nwlf | create | |
|