teaching:progappchim:notions_avancees

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
teaching:progappchim:notions_avancees [2023/02/04 11:14] – [Itertools, zip,...] villersdteaching:progappchim:notions_avancees [2023/05/02 10:36] (Version actuelle) – [Générateurs et "yield"] villersd
Ligne 16: Ligne 16:
   * [[http://code.activestate.com/recipes/580628-pluggable-python-generators/]]   * [[http://code.activestate.com/recipes/580628-pluggable-python-generators/]]
   * [[http://www.datadependence.com/2016/08/pythonic-code-video-series-yield-generators/|Processing Large Data Sets With Yield and Generators]]   * [[http://www.datadependence.com/2016/08/pythonic-code-video-series-yield-generators/|Processing Large Data Sets With Yield and Generators]]
 +  * [[https://levelup.gitconnected.com/return-vs-yield-in-python-a-short-comic-f714465a0e92|Return VS Yield in Python — A Short Comic]] Liu Zuo Lin, 04/2023, Medium
 +
  
 ===== Liste en compréhension ===== ===== Liste en compréhension =====
Ligne 27: Ligne 29:
   * [[https://iam-akshay.medium.com/python-one-liner-superb-tricks-c611aad98553|Python one-liner superb tricks]] Akshay Jain, Medium, 16/04/2022   * [[https://iam-akshay.medium.com/python-one-liner-superb-tricks-c611aad98553|Python one-liner superb tricks]] Akshay Jain, Medium, 16/04/2022
   * [[https://theanup.medium.com/10-powerful-python-one-liners-for-daily-use-8733dac0bc2c|15 Powerful Python One-Liners for Daily Use]] Anup Das, Medium, 22/11/2022   * [[https://theanup.medium.com/10-powerful-python-one-liners-for-daily-use-8733dac0bc2c|15 Powerful Python One-Liners for Daily Use]] Anup Das, Medium, 22/11/2022
 +
 +==== One-line if - then - else (ternary operator) ====
 +<code python>
 +u = 10
 +v = 100
 +reponse = "u plus grand que v" if u > v else "v plus grand ou égal à u"
 +print(reponse)
 +</code>
  
  
 ===== map, filter, reduce, lambda, pipe ===== ===== map, filter, reduce, lambda, pipe =====
   * [[https://towardsdatascience.com/write-clean-python-code-using-pipes-1239a0f3abf5|Write Clean Python Code Using Pipes - A Short and Clean Approach to Processing Iterables]] Khuyen Tran, medium, october 2021   * [[https://towardsdatascience.com/write-clean-python-code-using-pipes-1239a0f3abf5|Write Clean Python Code Using Pipes - A Short and Clean Approach to Processing Iterables]] Khuyen Tran, medium, october 2021
 +  * [[https://towardsdatascience.com/comparing-list-comprehensions-vs-built-in-functions-in-python-which-is-better-1e2c9646fafe|Comparing List Comprehensions vs. Built-In Functions in Python: Which Is Better?
 +An in-depth analysis of syntax, readability, and performance]] Thomas A Dorfer, Medium, 21/03/2023
   * ...   * ...
 +
 +===== Walrus operator =====
 +FIXME
  
 ===== Le rôle du caractère underscore en Python ===== ===== Le rôle du caractère underscore en Python =====
  • teaching/progappchim/notions_avancees.1675505657.txt.gz
  • Dernière modification : 2023/02/04 11:14
  • de villersd