What is the output of the following Python code snippet: print(all([True, False, True]))?

  • Error
  • FALSE
  • SyntaxError
  • TRUE

The all() function in Python returns True if all elements in the iterable are True. In this case, it returns False because one of the elements (False) is not True.

Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *