Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes |
teaching:progappchim:notions_fondamentales [2022/10/18 12:03] – [Gestion des erreurs] villersd | teaching:progappchim:notions_fondamentales [2023/01/28 15:00] – [Les tuples] villersd |
---|
* [[https://medium.com/better-programming/how-to-use-for-loops-better-in-python-1dfbc3d9e91f|How To Use For Loops Better in Python - A few functions that can improve your looping logic]] Yong Cui, Medium, Jan 8, 2020 | * [[https://medium.com/better-programming/how-to-use-for-loops-better-in-python-1dfbc3d9e91f|How To Use For Loops Better in Python - A few functions that can improve your looping logic]] Yong Cui, Medium, Jan 8, 2020 |
* [[https://medium.com/techtofreedom/the-art-of-writing-loops-in-python-68e9869e4ed4|The Art of Writing Loops in Python - Simple is better than complex]] Yang Zhou, Medium, 03/05/2021 | * [[https://medium.com/techtofreedom/the-art-of-writing-loops-in-python-68e9869e4ed4|The Art of Writing Loops in Python - Simple is better than complex]] Yang Zhou, Medium, 03/05/2021 |
| * [[https://towardsdatascience.com/the-art-of-speeding-up-python-loop-4970715717c|The Art of Speeding Up Python Loop]] Casey Cheng, Oct 2022, Towards Data Science |
| |
| |
---- | ---- |
Référence : | Référence : |
* [[https://www.datacamp.com/community/tutorials/python-tuples-tutorial|Python Tuples Tutorial]] | * [[https://www.datacamp.com/community/tutorials/python-tuples-tutorial|Python Tuples Tutorial]] |
| * [[https://towardsdatascience.com/python-tuple-the-whole-truth-and-only-the-truth-hello-tuple-12a7ab9dbd0d|Python Tuple, the Whole Truth, and Only the Truth: Hello, Tuple! - Learn the basics of tuples and of using them]] Marcin Kozak, Towards Data Science (Medium), 21/01/2023 |
| |
==== Les dictionnaires ==== | ==== Les dictionnaires ==== |
//Cf.// la [[https://docs.python.org/3/library/stdtypes.html#mapping-types-dict|documentation officielle]] | //Cf.// la [[https://docs.python.org/3/library/stdtypes.html#mapping-types-dict|documentation officielle]] |
</code> | </code> |
| |
| Références complémentaires : |
| * [[https://stackoverflow.com/questions/2541752/best-way-to-find-the-intersection-of-multiple-sets|Best way to find the intersection of multiple sets?]] |
==== D'autres types ==== | ==== D'autres types ==== |
Des types "haute-performance" sont aussi intégrés à Python, via le module "collections" à importer : | Des types "haute-performance" sont aussi intégrés à Python, via le module "collections" à importer : |
* [[https://levelup.gitconnected.com/10-python-tips-for-better-code-1bbffde3b44d|10 Python Tips For Better Code]] (Abhay Parashar, Medium, 17/12/2020) | * [[https://levelup.gitconnected.com/10-python-tips-for-better-code-1bbffde3b44d|10 Python Tips For Better Code]] (Abhay Parashar, Medium, 17/12/2020) |
* [[https://somacdivad.medium.com/3-tips-for-writing-pythonic-code-b090956a6107|3 Tips For Writing Pythonic Code]] David Amos, Medium, 17/03/2022 | * [[https://somacdivad.medium.com/3-tips-for-writing-pythonic-code-b090956a6107|3 Tips For Writing Pythonic Code]] David Amos, Medium, 17/03/2022 |
| * [[https://realpython.com/learning-paths/writing-pythonic-code/|Write More Pythonic Code - Learning Path ⋅ Skills: Best Practices, Writing Idiomatic Python]] (Real Python) |