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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :