OILS
/
opy
/
gold
/ set_and_dict_comp.py
View on Github
|
oilshell.org
12 lines, 5 significant
1
#!/usr/bin/env python2
2
"""
3
set_comp.py
4
"""
5
from __future__ import print_function
6
7
s = {x+1 for x in (1,2,3)}
8
print(s)
9
10
d = {x+1: None for x in (1,2,3)}
11
print(d)
12