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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :