diff --git a/src/actionsheets/data/python/collections/dict.toml b/src/actionsheets/data/python/collections/dict.toml index 55b110c..9df2e07 100644 --- a/src/actionsheets/data/python/collections/dict.toml +++ b/src/actionsheets/data/python/collections/dict.toml @@ -22,6 +22,13 @@ code = "x = {'color': 'blue', 'size': 'large'}" action = "Define with integer keys" code = "x = {1: 'a', 2: 'b', 3: 'c'}" +[create.comprehension] +action = "Generate from comprehension over list of keys" +code = """ +keys = ['a', 'b', 'c'] +{key: key.upper() for key in keys} +""" + [create.iter.fill] action = "Define from keys iterator and constant value _v_" code = "dict.fromkeys(key_iter, v)"