What is the correct way to create a dictionary in Python?
A. {1: 'one', 2: 'two', 3: 'three'}
B. {"one": 1, "two": 2, "three": 3}
C. dictionary = {1: 'one', 2: 'two', 3: 'three'}
D. dictionary {"one": 1, "two": 2, "three": 3} Answer
Answer:B
What is the correct way to create a dictionary in Python?
A. {1: 'one', 2: 'two', 3: 'three'} B. {"one": 1, "two": 2, "three": 3} C. dictionary = {1: 'one', 2: 'two', 3: 'three'} D. dictionary {"one": 1, "two": 2, "three": 3} Answer