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


Ta réponse :

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


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


Ta réponse :