Skip to content

Commit 0d12ab1

Browse files
committed
Sets: initial
1 parent 17b1cf9 commit 0d12ab1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Level_03/sets.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env python3
2+
3+
# Sets sind Mengen (im mathematischen Sinne), also:
4+
# * Elemente können maximal einfach vorkommen
5+
# * Es gibt keine Reihenfolge.
6+
7+
s = {1, 2, 2, 2, 2, 2, 3, 'foo'}
8+
s.update({5})
9+
s
10+
set('foo')
11+
type({})

0 commit comments

Comments
 (0)