Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. # Subconjunto
  2. {1, 2}.issubset({1, 2, 3}) # True
  3. {1, 2} <= {1, 2, 3} # True
  4.  
  5. {1, 5, 3, 4}.issubset({1, 2, 3}) # False
  6. {1, 5, 3, 4} <= {1, 2, 3} # False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement