You can use the all() function to check if all the items in a sequence satisfy a certain condition.
Similarly, you can use the any() function to check if any of the items in a sequence satisfy a condition.
You can also read about it if you prefer on:
https://renanmf.com/check-if-all-or-a...
📚 Buy my book Python Fundamentals
https://renanmf.com/python-fundamenta...
📸Instagram: / renanmouraf
🌎 Website: https://renanmf.com/
🐦 Twitter: / renanmouraf
📝 LinkedIn: / renanmouraf
👍 Please leave a LIKE and SUBSCRIBE for more content! 👍
⭐️ Tags ⭐️
Python
#️⃣ Hashtags #️⃣
#Python