Home > database >  Phthon dictionary problem
Phthon dictionary problem

Time:10-06

L1=[11, 22, 33]
L2=[44] 22, 33,
A. to obtain a list of same element

B. no element in the obtaining of l1, l2 list

C. in the l2, no element in the l1 list

D. to get content in l1 and l2 are different elements

CodePudding user response:

You have not learned the set this is?
Set (l1) & amp; Set (l2)
Set (l1) - set (l2)
Set (l2) - set (l1)
Set (l1) | set (l2)

CodePudding user response:

The problem is the set of basic operations
  • Related