Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
mylist = [0, 1, 1] x = all(mylist) print(x) # Returns False because 0 is the same as False
x
mylist
=
[
0
,
1
,
1
]
x
=
all
(
mylist
)
print
(
x
)
# Returns False because 0 is the same as False
False