1.

Write note on dictionary comprehensions?

Answer»

In Python, comprehension is another way of creating dictionary. The following is the syntax of creating such dictionary.

Syntax

Diet = { expression for variable in sequence [if condition] }



Discussion

No Comment Found