Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
myset = {0, 1, 0} x = any(myset) print(x) # Returns True because the second item is True
x
myset
=
{
0
,
1
,
0
}
x
=
any
(
myset
)
print
(
x
)
# Returns True because the second item is True
True