Any & All Functions – Python Tips and Tricks #7




[ad_1]

In today’s video we learn about the functions any and all. These are functions that allow us to check for certain conditions in collections.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
💻 The Algorithm Bible Book: https://www.neuralnine.com/books/
🐍 The Python Bible Book: https://www.neuralnine.com/books/
👕 Programming Merch: https://www.neuralnine.com/shop

🌐 Social Media & Contact 🌐
📱 Website: https://www.neuralnine.com/
📷 Instagram: https://www.instagram.com/neuralnine
🐦 Twitter: https://twitter.com/neuralnine
🤵 LinkedIn: https://www.linkedin.com/company/neuralnine/
📁 GitHub: https://github.com/NeuralNine

🖥️ My Coding Setup 🖥️
⌨️ Keyboard: http://hyperurl.co/neuralkeyboard
🖱️ Mouse: http://hyperurl.co/neuralmouse
🖥️ Monitor: http://hyperurl.co/neuralmonitor
🎙️ Microphone: http://hyperurl.co/neuralmicrophone
✏️ Drawing Tablet: http://hyperurl.co/neuraldraw

🎵 Outro Music From: https://www.bensound.com/

Source


[ad_2]

Comment List

  • NeuralNine
    December 6, 2020

    good video.

  • NeuralNine
    December 6, 2020

    Wouldn't it be better to just skip the lambda and write the list comprehension this way?
    result = [number % 2 for number in numbers]

    Am I missing something?

Write a comment