@@ -19,5 +19,11 @@
* analysetext.py : manipulation simple de chainnes decaractères
+* fargs, fdef : plus sur les arguments des fonctions
+
+* dictionnaires
+* fkw : dictionnaires et fonctions
* testturing.py : le théorème de Turing en quelques lignes.
@@ -0,0 +1,5 @@
+def f(*args):
+ tot=0
+ for a in args:
+ tot += a
+ return tot
@@ -0,0 +1,2 @@
+def fdef(a,b=0):
+ return a+b
@@ -0,0 +1,3 @@
+def fkw(**kw):
+ for k in kw:
+ print(k,kw[k])