Python bool() function output for empty list and zero

🚀 Let’s test your Python logic… What’s the output of this code? print(bool([]), bool([0])) A) True False   B) False True   C) False False   D) True True  👇 Drop your answer in the comments Follow Python Pythiam for more Python quizzes & projects 🐍 #Python #Programming #Coding

Correct answer. Thanks for your response.

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories