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-8)+(-2*b-5)
								return resultat
							
							y=maFonction(4,-3)
							print(y)
							


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :