view example/listcomp.py @ 36:e61b332f92ee

Add a test for DictComp.
author Bastien Orivel <eijebong@bananium.fr>
date Sat, 04 Jun 2016 15:05:17 +0200
parents 719a27f1c1c7
children
line wrap: on
line source

l = [v for v in range(5) if v % 2]