6 Tips to write BETTER For Loops in Python

6 Tips to write BETTER For Loops in Python

252.685 Lượt nghe
6 Tips to write BETTER For Loops in Python
6 Tips to write BETTER For Loops in Python. Further resource: Talk "a deeper look at iteration in Python": https://youtu.be/Wd7vcuiMhxU Get my Free NumPy Handbook: https://www.python-engineer.com/numpybook ✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: https://sourcery.ai/?utm_source=youtube&utm_campaign=pythonengineer * ⭐ Join Our Discord : https://discord.gg/FHMg9tKFSN 📓 ML Notebooks available on Patreon: https://www.patreon.com/patrickloeber If you enjoyed this video, please subscribe to the channel: ▶️ : https://www.youtube.com/channel/UCbXgNpp0jedKWcQiULLbDTA?sub_confirmation=1 ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~ 🖥️ Website: https://www.python-engineer.com 🐦 Twitter - https://twitter.com/patloeber ✉️ Newsletter - https://www.python-engineer.com/newsletter 📸 Instagram - https://www.instagram.com/patloeber 🦾 Discord: https://discord.gg/FHMg9tKFSN ▶️ Subscribe: https://www.youtube.com/channel/UCbXgNpp0jedKWcQiULLbDTA?sub_confirmation=1 ~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~ 🅿 Patreon - https://www.patreon.com/patrickloeber #Python Timeline: 00:00 - Introduction 00:16 - Avoid loops 00:54 - enumerate 01:43 - zip 02:57 - Think Lazy 05:19 - Use itertools more - 3 cool functions 08:00 - Use NumPy ---------------------------------------------------------------------------------------------------------- * This is an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏