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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :

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


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


Ta réponse :