teaching:progappchim:notions_fondamentales

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_fondamentales [2023/01/28 15:00] – [Les tuples] villersdteaching:progappchim:notions_fondamentales [2023/05/03 08:39] (Version actuelle) – [Variables locales et globales] villersd
Ligne 622: Ligne 622:
     * [[https://towardsdatascience.com/global-local-and-nonlocal-variables-in-python-6b11c20d73b0|Global, Local and Nonlocal variables in Python]]     * [[https://towardsdatascience.com/global-local-and-nonlocal-variables-in-python-6b11c20d73b0|Global, Local and Nonlocal variables in Python]]
     * [[https://towardsdatascience.com/many-python-programmers-cannot-solve-this-puzzle-c5950841d14d|Many Python Programmers Cannot Solve This Puzzle - A brief introduction to “Python under the hood” for beginners]] Naser Tamimi, Medium, Dec 23, 2020     * [[https://towardsdatascience.com/many-python-programmers-cannot-solve-this-puzzle-c5950841d14d|Many Python Programmers Cannot Solve This Puzzle - A brief introduction to “Python under the hood” for beginners]] Naser Tamimi, Medium, Dec 23, 2020
 +    * [[https://tonylixu.medium.com/python-different-ways-to-call-function-e6f37bafefcf|Python — Different Ways to Call Function
 +How to call a function in Python?]] Tony, Medium, 19/04/2023
 ==== Passage d'arguments par tuples et dictionnaires ==== ==== Passage d'arguments par tuples et dictionnaires ====
   * Les arguments d'une fonction peuvent être transmis via un tuple en préfixant le nom du tuple par le symbole * (on utilise en général l'identifiant "*args" pour le tuple)   * Les arguments d'une fonction peuvent être transmis via un tuple en préfixant le nom du tuple par le symbole * (on utilise en général l'identifiant "*args" pour le tuple)
Ligne 677: Ligne 679:
 plat : poularde plat : poularde
 </code> </code>
 +
 +Références :
 +  * [[https://medium.com/@mikehuls/python-args-kwargs-and-all-other-ways-to-pass-arguments-to-your-function-bd2acdce72b5|Python args, kwargs, and All Other Ways to Pass Arguments to Your Function - Expertly design your function parameters in 6 examples]] Mike Huls, Medium, 07/03/2023
 +  * [[https://python.plainenglish.io/args-and-kwargs-in-python-demystified-317fb1961720|*args And **kwargs In Python Demystified | by Liu Zuo Lin | Mar, 2023 | Python in Plain English]] Liu Zuo Lin, Medium, 26/03/2023
 ===== Modules de fonctions ===== ===== Modules de fonctions =====
 Des fonctions ou simplement des déclarations de variables peuvent être définies et regroupées dans un fichier (.py), et ensuite renseignées pour leur utilisation dans un programme grâce à la directive d'importation. Des fonctions ou simplement des déclarations de variables peuvent être définies et regroupées dans un fichier (.py), et ensuite renseignées pour leur utilisation dans un programme grâce à la directive d'importation.
Ligne 752: Ligne 758:
   * [[https://datawhatnow.com/things-you-are-probably-not-using-in-python-3-but-should/]] (f-strings vs format)   * [[https://datawhatnow.com/things-you-are-probably-not-using-in-python-3-but-should/]] (f-strings vs format)
   * [[https://python.plainenglish.io/become-a-master-of-string-formatting-in-python3-252334a8269a|Become a Master of String Formatting in Python3]] by Maxence LQ, Python in Plain English, 25/05/2021   * [[https://python.plainenglish.io/become-a-master-of-string-formatting-in-python3-252334a8269a|Become a Master of String Formatting in Python3]] by Maxence LQ, Python in Plain English, 25/05/2021
 +  * [[https://ibexorigin.medium.com/have-mercy-on-yourself-and-learn-these-9-everyday-python-f-string-codes-e8104677d7c7|Have Mercy on Yourself And Learn These 9 Everyday Python f-string Codes]] Bex. T., Medium, 14/03/2023
  
  
  • teaching/progappchim/notions_fondamentales.1674914407.txt.gz
  • Dernière modification : 2023/01/28 15:00
  • de villersd