#!/usr/local/bin/python3.4
# coding:utf-8
print("Content-Type: application/json; charset=UTF-8\r\n")
#リスト 内包表記
print("[i for i in range(5)] --> ", [i for i in range(5)])
# --> [0, 1, 2, 3, 4]
#辞書型 内包表記
print("{c: c.upper() for c in 'abcde'} --> ", {c: c.upper() for c in 'abcde'})
# --> {'e': 'E', 'a': 'A', 'c': 'C', 'b': 'B', 'd': 'D'}
#セット 内包表記
print("{c for c in 'abcde'} -->", {c for c in 'abcde'})
# --> {'a', 'c', 'e', 'b', 'd'}
#ジェネレータ 内包表記
print("(c for c in 'abcde') -->", (c for c in 'abcde'))
# --> <generator object <genexpr> at 0x7f2fbc83c9d8>