---
title: "Discussion on \"any() and all() in Python\" | Hashnode"
description: "Discussion on \"any() and all() in Python\". In this post, we will be looking into any() and all() functions in Python. \nFirst, let us discuss the any() function.\n👉 any() \nThe any() function takes an iterable as an argument :  any(iterable) . \nThe iterable can be a list, tuple or dictionary.\nT..."
url: "https://hashnode.com/posts/any-and-all-in-python/5ff6de4ba538d00135152083"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [any() and all() in Python](https://ashwinsharmap.hashnode.dev/any-and-all-in-python?utm_source=hashnode&utm_medium=feed)

In this post, we will be looking into any() and all() functions in Python. First, let us discuss the any() function. 👉 any() The any() function takes an iterable as an argument : any(iterable) . The iterable can be a list, tuple or dictionary. T...

Jan 7, 2021 · 3 min read · ashwinsharmap.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#functions](https://hashnode.com/tag/functions)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)

## Written by

[Ashwin Sharma P](https://hashnode.com/@ashwinsharmap)

@ashwinsharmap · India

  
[View profile](https://hashnode.com/@ashwinsharmap)

Loves to experiment with writing

## Responses 3

Markdown supported · ⌘↵ to post

[Kritika Singhal](https://hashnode.com/@kritikasinghal)

[Jan 8, 2021](https://hashnode.com/posts/any-and-all-in-python/5ff6de4ba538d00135152083/comment/5ff7d7daaa5c467fe1556ee7)

Very well drafted 🙌 Wasn't aware about all(). Glad to learn about it.

[Ashwin Sharma P](https://hashnode.com/@ashwinsharmap)

[Jan 8, 2021](https://hashnode.com/posts/any-and-all-in-python/5ff6de4ba538d00135152083/comment/5ff7d7daaa5c467fe1556ee7#reply-5ff8129daa5c467fe155722c)

Thank you😊

[vaibhav kumar](https://hashnode.com/@vaibhavkumar)

[Jan 7, 2021](https://hashnode.com/posts/any-and-all-in-python/5ff6de4ba538d00135152083/comment/5ff76827aa5c467fe1556aad)

Thanks for sharing! Learned two new functions

[Ashwin Sharma P](https://hashnode.com/@ashwinsharmap)

[Jan 8, 2021](https://hashnode.com/posts/any-and-all-in-python/5ff6de4ba538d00135152083/comment/5ff76827aa5c467fe1556aad#reply-5ff7a884a538d00135152dc9)

Glad you learnt something new😃

[Luiz Filipe da Silva](https://hashnode.com/@luizfilipezs)

[Jan 7, 2021](https://hashnode.com/posts/any-and-all-in-python/5ff6de4ba538d00135152083/comment/5ff714cdaa5c467fe1556400)

I didn't know these functions. Thanks for sharing!

[Ashwin Sharma P](https://hashnode.com/@ashwinsharmap)

[Jan 7, 2021](https://hashnode.com/posts/any-and-all-in-python/5ff6de4ba538d00135152083/comment/5ff714cdaa5c467fe1556400#reply-5ff7209baa5c467fe155650f)

Happy that you found it helpful. 😃😊
