Which of the following code syntax shows a valid use of curly braces '{}' in Python?

Which of the following code syntax shows a valid use of curly braces '{}' in Python?

  1. a) A={'one':1, 'two':2}
  2. b) if(A>5) {print("Hello")}
  3. c) A= {range(6)}
  4. d) B={A=5}

From the Combined Bank Assistant Programmer (CSE) 2020 – Preliminary (DU) exam, question 38 of 47.

More from this paper