Python Forum
how to replace OR operator with any
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to replace OR operator with any
#6
(Oct-20-2022, 09:14 PM)deanhystad Wrote: Not seeing how this one would work.
Try
>>> countries = ("USA", "Australia", "Italy")
>>> set(("Ind", "US", "Aus")).isdisjoint(countries)
True
>>> set(("Ind", "USA", "Aus")).isdisjoint(countries)
False
Reply


Messages In This Thread
how to replace OR operator with any - by mg24 - Oct-20-2022, 01:42 AM
RE: how to replace OR operator with any - by mg24 - Oct-20-2022, 04:50 AM
RE: how to replace OR operator with any - by Gribouillis - Oct-21-2022, 09:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Search & Replace - Newlines Added After Replace dj99 3 4,417 Jul-22-2018, 01:42 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020