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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :