1# Dictionary Comprehension Types
2
3{j:j*2 for i in range(10)}
4
5#using if
6{j:j*2 for j in range(10) if j%2==0}
7
8#using if and
9{j:j*2 for j in range(10) if j%2==0 and j%3==0}
10
11#using if else
12{j:(j*2 if j%2==0 and j%3==0 else 'invalid' )for j in range(10) }