Liste des activités

SNT:cours de seconde.

Lycée Pyrène: Monsieur David Poutriquet.

Activité automatismes: Les fonctions avec plusieurs variables en Python niveau 1.


Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(9*a+7)+(-6*b-5)
								return resultat
							
							y=maFonction(2,-2)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(7*a+3)+(9*b-5)
								return resultat
							
							y=maFonction(-4,1)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(4*a+3)+(-5*b+9)
								return resultat
							
							y=maFonction(3,1)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(6*a-9)+(6*b+5)
								return resultat
							
							y=maFonction(0,-3)
							print(y)
							


Ta réponse :

Voici, un algorithme en Python , qu'affiche cet algorithme?


							def maFonction(a,b):
								resultat=(5*a-2)+(-8*b-8)
								return resultat
							
							y=maFonction(-5,0)
							print(y)
							


Ta réponse :