Put in order · Python course · Module 2: Data Structures

Set Operations

Arrange the steps in order:

Items to put in order

  • print(common)
  • b = {2, 3, 4}
  • a = {1, 2, 3}
  • common = a & b
Show the answer

Correct order:

  1. a = {1, 2, 3}
  2. b = {2, 3, 4}
  3. common = a & b
  4. print(common)